Skip to content

3p3r/opshun

Repository files navigation

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

Releases

No releases published

Packages

No packages published