argify

0.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i argify

Weekly Downloads

5

Version

0.0.3

License

none

Last publish

Collaborators

  • ben-bradley