From 30c4163ba88c2c88c66157b8733951c3f42d672d Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 26 Jun 2012 13:24:09 -0600 Subject: [PATCH] added cli bin --- atob/bin/atob.js | 10 ++++++++++ atob/package.json | 36 ++++++++++++++++++++---------------- 2 files changed, 30 insertions(+), 16 deletions(-) create mode 100644 atob/bin/atob.js diff --git a/atob/bin/atob.js b/atob/bin/atob.js new file mode 100644 index 0000000..5b008a7 --- /dev/null +++ b/atob/bin/atob.js @@ -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])); +}()); diff --git a/atob/package.json b/atob/package.json index 79b3c36..6077faa 100644 --- a/atob/package.json +++ b/atob/package.json @@ -1,18 +1,22 @@ { - "name" : "atob", - "homepage" : "https://github.com/coolaj86/node-browser-compat", - "description" : "atob for Node.JS (it's a one-liner)", - "repository" : { - "type": "git", - "url": "git://github.com/coolaj86/node-browser-compat.git" - }, - "keywords" : ["atob", "browser"], - "author" : "AJ ONeal (http://coolaj86.info)", - "engines" : { - "node": ">= 0.4.0" - }, - "dependencies" : { - }, - "main" : "index", - "version" : "1.0.0" + "name": "atob", + "homepage": "https://github.com/coolaj86/node-browser-compat", + "description": "atob for Node.JS and Linux / Mac / Windows CLI (it's a one-liner)", + "repository": { + "type": "git", + "url": "git://github.com/coolaj86/node-browser-compat.git" + }, + "keywords": [ + "atob", + "browser" + ], + "author": "AJ ONeal (http://coolaj86.info)", + "engines": { + "node": ">= 0.4.0" + }, + "main": "index", + "bin": { + "atob": "bin/atob.js" + }, + "version": "1.0.1" }