@dvo/cliargs

1.0.0 • Public • Published

dvo/cliargs

dvo/cliargs is a simple piece of code used to interpret arguments given to NodeJS as key/value pairs. It will basically output arguments such as node script.js alpha beta -charlie delta --echo foxtrot into an object

cliargs = {
 "alpha":true,
 "beta":true,
 "c":true,
 "h":true,
 "a":true,
 "r":true
 "l":true,
 "i":true,
 "e":"delta",
 "echo":"foxtrot"
}

The script was first wrote as an answer to a stackoverflow question, but as I proceed to actually use it, it was simpler to add it to npm.

Readme

Keywords

Package Sidebar

Install

npm i @dvo/cliargs

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

1.53 kB

Total Files

3

Last publish

Collaborators

  • ndvo
  • isacvale