@rootstream/rc-typed

1.0.1 • Public • Published

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', {...})

Readme

Keywords

none

Package Sidebar

Install

npm i @rootstream/rc-typed

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.87 kB

Total Files

6

Last publish

Collaborators

  • sepehr-laal