added cli tool
This commit is contained in:
		
							parent
							
								
									30c4163ba8
								
							
						
					
					
						commit
						48288ef240
					
				
							
								
								
									
										10
									
								
								btoa/bin/btoa.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								btoa/bin/btoa.js
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
			
		||||
#!/usr/bin/env node
 | 
			
		||||
/*jshint strict:true node:true es5:true onevar:true laxcomma:true laxbreak:true eqeqeq:true immed:true latedef:true*/
 | 
			
		||||
(function () {
 | 
			
		||||
  "use strict";
 | 
			
		||||
 | 
			
		||||
  var btoa = require('../index')
 | 
			
		||||
    ;
 | 
			
		||||
 | 
			
		||||
  console.log(btoa(process.argv[2]));
 | 
			
		||||
}());
 | 
			
		||||
@ -1,18 +1,22 @@
 | 
			
		||||
{
 | 
			
		||||
  "name"          : "btoa",
 | 
			
		||||
  "homepage"      : "https://github.com/coolaj86/node-browser-compat",
 | 
			
		||||
  "description"   : "btoa for Node.JS (it's a one-liner)",
 | 
			
		||||
   "repository"   : {
 | 
			
		||||
                      "type": "git",
 | 
			
		||||
                      "url": "git://github.com/coolaj86/node-browser-compat.git"
 | 
			
		||||
                    },
 | 
			
		||||
  "keywords"      : ["btoa", "browser"],
 | 
			
		||||
  "author"        : "AJ ONeal <coolaj86@gmail.com> (http://coolaj86.info)",
 | 
			
		||||
  "engines"       : {
 | 
			
		||||
                      "node": ">= 0.4.0"
 | 
			
		||||
                    },
 | 
			
		||||
  "dependencies"  : {
 | 
			
		||||
                    },
 | 
			
		||||
  "main"          : "index",
 | 
			
		||||
  "version"       : "1.0.0"
 | 
			
		||||
  "name": "btoa",
 | 
			
		||||
  "homepage": "https://github.com/coolaj86/node-browser-compat",
 | 
			
		||||
  "description": "btoa for Node.JS (it's a one-liner)",
 | 
			
		||||
  "repository": {
 | 
			
		||||
    "type": "git",
 | 
			
		||||
    "url": "git://github.com/coolaj86/node-browser-compat.git"
 | 
			
		||||
  },
 | 
			
		||||
  "keywords": [
 | 
			
		||||
    "btoa",
 | 
			
		||||
    "browser"
 | 
			
		||||
  ],
 | 
			
		||||
  "author": "AJ ONeal <coolaj86@gmail.com> (http://coolaj86.info)",
 | 
			
		||||
  "engines": {
 | 
			
		||||
    "node": ">= 0.4.0"
 | 
			
		||||
  },
 | 
			
		||||
  "bin": {
 | 
			
		||||
    "btoa": "bin/btoa.js"
 | 
			
		||||
  },
 | 
			
		||||
  "main": "index",
 | 
			
		||||
  "version": "1.0.1"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user