@rootstream/rc-typed
v1.0.1
Published
rc package integrated with parse-strings-in-object and correct type preservation
Downloads
4
Readme
rc-typed
rc package integrated with parse-strings-in-object and correct type preservation
this is a drop-in replacement for rc package with the following additions:
- recursive type parsing and type preservation (so environment variables passed have the correct type in JS)
- fixed jsdoc of the main rc function so vscode shows the correct path in intellisense
this is mainly here because I refuse to copy paste this logic in my projects from now on!
usage
npm install --save @rootstream/typed-rc
// replace:
const config = require('rc')('name', {...})
// with:
const config = require('@rootstream/typed-rc')('name', {...})