dotcfg
Allows you to manage namespace objects with qualified names.
Getting Started
Installation
npm install dotcfg --save
Links to CDN
umd
amd
iife
cjs
Use this URL for dev/testing
Use this URL in production
Usage:
const dotcfg = ; const NYC = ; // SET// ---NYC;// => { env:{ url:{ host:'0.0.0.0' } } } NYC;// => { resolve:{ extensions:{ '1':{ name:'.js' } } } } NYC;// => { resolve:{ extensions:[undefined, { name:'.js' }] } } NYC;// => { watchOptions:{} } NYC;// => { process:{ 'env.NODE_ENV':{ type:'DEV' } } } // GET// ---NYC;// <= { url:{ host:'0.0.0.0', port:3000 } } } NYC;// <= { host:'0.0.0.0', port:3000 } NYC;// <= '0.0.0.0' NYC;// <= { name:'.js' } NYCscoperesolveextensions1name;// <= '.js' NYC;/*! true: brings a deep copy of raw object. */ NYC;/*! false/undefined: brings dotcfg object. */