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

0.0.26 • Public • Published

nodesuite

@nodesuite/options

Universal options parser for cli argument, environment variables, and configuration files.

Reference

Options key resolution and precedence follows the AWS Configuration Variables style guide:

https://docs.aws.amazon.com/cli/latest/topic/config-vars.html

Format & Priority

1. CLI arguments

  • --param-case keys.
  • Must set the property using a = value with zero whitespace.

2. Environment variables

  • CONSTANT_CASE keys.
  • Will search recursively for any .env or .env.defaults files.

3. Configuration file

  • camelCase keys.
  • JSON file format. (YAML coming soon)

Package Sidebar

Install

npm i @nodesuite/options

Weekly Downloads

1

Version

0.0.26

License

ISC

Unpacked Size

73.8 kB

Total Files

5

Last publish

Collaborators

  • insidium