tiny-conf-plugin-argv

1.1.0 • Public • Published

tiny-conf-plugin-argv

Will store content of process.argv to the given tiny-conf store

Usage

const conf = require('tiny-conf');
 
require('tiny-conf-plugin-argv')(conf);

Example

Calling your app like this:

node /path/to/your/app.js --foo=bar --no-log --one.two tree

With /path/to/your/app.js:

const conf = require('tiny-conf');
require('tiny-conf-plugin-argv')(conf);
 
// it will load argv params in store:
conf.get('foo'); // 'bar'
conf.get('log'); // false
conf.get('one.two'); // 'three'

Readme

Keywords

Package Sidebar

Install

npm i tiny-conf-plugin-argv

Weekly Downloads

2

Version

1.1.0

License

MIT

Last publish

Collaborators

  • leiko