1.0.1 • Published 8 years ago
proxenv v1.0.1
proxenv
Simple, unobtrusive config management.
Manage yaml
or json
configs based on your NODE_ENV
, with safe proxying
to ensure no unexpected runtime errors.
Usage
Using NODE_ENV
const config = require("proxenv")("path/to/configs")
// config = { "test": true }
console.log(config.test) // -> true
console.log(config.invalid) // -> {}
console.log(config.invalid.and.getting.deeper) // -> {}
With provided environment
const config = require("proxenv")("path/to/configs", "provided env")
License
BSD 2-clause. See LICENSE.