Browse Source

added cli bin

master
AJ ONeal 12 years ago
parent
commit
87f7024d3e
  1. 10
      bin/atob.js
  2. 36
      package.json

10
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]));
}());

36
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 <coolaj86@gmail.com> (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 <coolaj86@gmail.com> (http://coolaj86.info)",
"engines": {
"node": ">= 0.4.0"
},
"main": "index",
"bin": {
"atob": "bin/atob.js"
},
"version": "1.0.1"
}

Loading…
Cancel
Save