ezzy-argument

3.1.5 • Public • Published

ezzy-argument

Build Status Coverage Status

This small lightweight library will help fetch arguments from the environment or from the node arguments.

By requesting this library, you'll be able to invoke:

const arg = require('ezzy-argument');
arg('my_argument', 'default value');

This will look for an argument for:

  • process.env.my_argument
  • process.env.MY_ARGUMENT
  • process.argv['-MY_ARGUMENT']
  • process.argv['--MY_ARGUMENT']
  • process.argv['-my_argument']
  • process.argv['--my_argument']

and finally return the default value.

  • 'default value'

Readme

Keywords

none

Package Sidebar

Install

npm i ezzy-argument

Weekly Downloads

29

Version

3.1.5

License

MIT

Unpacked Size

5.28 kB

Total Files

5

Last publish

Collaborators

  • ezzygemini