Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 679 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 679 Bytes

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