Last Updated: February 25, 2016
·
1.551K
· vtsvang

Runtime Configuration on Node.JS

I've just posted the package that you may use to work with RC-files. It supports a couple of formats (json, yaml, ini and plist).

Check it out on npmjs.org and GitHub

Usage example:

rc = require "runtime-configuration"

rc "npm", { "email": "anonymous@gmail.com" }, ( err ) ->
  console.log "Logged as #{ @get "email" } on npm"