0.0.3 • Published 9 years ago

argify v0.0.3

Weekly downloads
14
License
-
Repository
github
Last release
9 years ago

Argify Build Status

A very small bit of code that I got tired of typing again and again.

It parses command line arguments formatted like: $ node ./yourscript.js --blargh=honk

Install

npm install argify

npm install ben-bradley/argify

Use

// yourscript.js
var args = require('argify');

console.log(args);        // stdout: { blargh: 'honk' }
console.log(args.blargh); // stdout: 'honk'
console.log(args.foo);    // stdout: true

$ node ./yourscript.js --blargh=honk --foo

Version

  • 0.0.3 - added boolean options
  • 0.0.2 - fixed package.json keywords, added travis bling, standardized structure
  • 0.0.1 - initial drop