@jhanssen/options
TypeScript icon, indicating that this package has built-in type declarations

6.0.0 • Public • Published

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});

Package Sidebar

Install

npm i @jhanssen/options

Weekly Downloads

1,613

Version

6.0.0

License

MIT

Unpacked Size

41.2 kB

Total Files

7

Last publish

Collaborators

  • jhanssen
  • andersbakken