1.0.2 • Published 4 years ago

opshun v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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