the-argv

1.0.0 • Public • Published

the-argv

NPM version js-xo-style

The part of argv you want

No need to remember how to get those cli arguments anymore...

Installation

Install the-argv using npm:

npm install --save the-argv

Usage

Module usage

var theArgv = require('the-argv');
 
// process.argv = ['/usr/local/bin/node', 'index.js', '--flag', 'arg']
 
console.log(theArgv());
// outputs: ['--flag', 'arg']

Example with minimist

var argv = require('minimist')(require('the-argv')());
 
// ...

License

MIT

Package Sidebar

Install

npm i the-argv

Weekly Downloads

7,610

Version

1.0.0

License

MIT

Last publish

Collaborators

  • joakimbeng