@dvo/cliargs
v1.0.0
Published
A simple argument interpreter for Node cli.
Downloads
1
Readme
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.