@dot-event/argv
v3.0.2
Published
dot-event process.argv parser
Downloads
29
Readme
@dot-event/argv
dot-event process.argv
parser
Install
npm install dot-event @dot-event/argv
Usage
var dot = require("dot-event")()
require("@dot-event/argv")(dot)
var args = dot.argv()
expect(args).toEqual({ _: ["arg"], opt: true })
Options
var args = dot.argv({
args: ["arg", "-o"],
alias: { o: ["opt"] },
})
expect(args).toEqual({ _: ["arg"], o: true, opt: true })
Credits
This project uses getopts for argument parsing.