added cli bin
This commit is contained in:
		
							parent
							
								
									ff3d037a62
								
							
						
					
					
						commit
						30c4163ba8
					
				
							
								
								
									
										10
									
								
								atob/bin/atob.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								atob/bin/atob.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 atob = require('../index')
 | 
				
			||||||
 | 
					    ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  console.log(atob(process.argv[2]));
 | 
				
			||||||
 | 
					}());
 | 
				
			||||||
@ -1,18 +1,22 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name"          : "atob",
 | 
					  "name": "atob",
 | 
				
			||||||
  "homepage"      : "https://github.com/coolaj86/node-browser-compat",
 | 
					  "homepage": "https://github.com/coolaj86/node-browser-compat",
 | 
				
			||||||
  "description"   : "atob for Node.JS (it's a one-liner)",
 | 
					  "description": "atob for Node.JS and Linux / Mac / Windows CLI (it's a one-liner)",
 | 
				
			||||||
   "repository"   : {
 | 
					  "repository": {
 | 
				
			||||||
    "type": "git",
 | 
					    "type": "git",
 | 
				
			||||||
    "url": "git://github.com/coolaj86/node-browser-compat.git"
 | 
					    "url": "git://github.com/coolaj86/node-browser-compat.git"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "keywords"      : ["atob", "browser"],
 | 
					  "keywords": [
 | 
				
			||||||
  "author"        : "AJ ONeal <coolaj86@gmail.com> (http://coolaj86.info)",
 | 
					    "atob",
 | 
				
			||||||
  "engines"       : {
 | 
					    "browser"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "author": "AJ ONeal <coolaj86@gmail.com> (http://coolaj86.info)",
 | 
				
			||||||
 | 
					  "engines": {
 | 
				
			||||||
    "node": ">= 0.4.0"
 | 
					    "node": ">= 0.4.0"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "dependencies"  : {
 | 
					  "main": "index",
 | 
				
			||||||
 | 
					  "bin": {
 | 
				
			||||||
 | 
					    "atob": "bin/atob.js"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "main"          : "index",
 | 
					  "version": "1.0.1"
 | 
				
			||||||
  "version"       : "1.0.0"
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user