boolearg

0.1.2 • Public • Published

boolearg

Returns true if process.argv contains given string(s).

Examples

// $ example --debug
boolearg('--debug')
// => true

// $ example --lol
boolearg(['-d', '--debug', '--debug=404'])
// => false

// $ example --lol
boolearg(123)
// => TypeError

Package Sidebar

Install

npm i boolearg

Weekly Downloads

0

Version

0.1.2

License

MIT

Last publish

Collaborators

  • kootoopas