Skip to content
This repository has been archived by the owner on Feb 23, 2020. It is now read-only.

rc package integrated with parse-strings-in-object and correct type preservation

License

Notifications You must be signed in to change notification settings

rootstream/_ARCHIVED-rc-typed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

rc package integrated with parse-strings-in-object and correct type preservation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published