opshun
v1.0.2
Published
type-safe version of the rc package
Downloads
3
Readme
opshun
type-safe version of the rc package.
why
this is a drop-in replacement for the rc package that accomplishes:
- enabling type safety (original rc reads everything as strings)
- logging flat version of the parsed config for debugging
- 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'
}
});