1.0.1 • Published 4 years ago

@rootstream/rc-typed v1.0.1

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

rc-typed

CircleCI

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:

  1. recursive type parsing and type preservation (so environment variables passed have the correct type in JS)
  2. 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', {...})
1.0.1

4 years ago

1.0.0

5 years ago