opshun

1.0.2 • Public • Published

opshun

type-safe version of the rc package.

why

this is a drop-in replacement for the rc package that accomplishes:

  1. enabling type safety (original rc reads everything as strings)
  2. logging flat version of the parsed config for debugging
  3. fixing VSCode's intellisense references to the package

usage

in your project:

npm install --save opshun

in your code:

const rc = require('opshun);
const conf = rc(appname, {
  //defaults go here.
  port: 2468,
  //defaults which are objects will be merged, not replaced
  views: {
    engine: 'jade'
  }
});

Readme

Keywords

Package Sidebar

Install

npm i opshun

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.46 kB

Total Files

4

Last publish

Collaborators

  • sepehr-laal