@jhanssen/options
v6.0.0
Published
Options parser that looks at argv, environment variables and a config file.
Downloads
4,143
Readme
options
Node options parser that looks at argv, environment variables and a config file.
install
npm i -S @jhanssen/options
usage
const option = require("@jhanssen/options")(prefix);
const valueString = option("key");
const valueInt = option.int("key", 42);
const valueJson = option.json("key", {test:123});