get-command-args

1.0.0 • Public • Published

get-command-args

Install

npm install --save get-command-args

Usage

In this example the variable vargs is an array of position arguments from the command line.

var vargs = require('get-command-args')();

About

get-command-args understands normal CMD positional arguments, and positional arguments started with the non-standard --.

get-command-args ignores flags, and their values.

Also see the get-command-flags module.

In the browser

It uses the path of the URI as positional arguments. The -- argument is not used in the browser.

Readme

Keywords

Package Sidebar

Install

npm i get-command-args

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • hollowdoor