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"
Written by Vladimir Tsvang, Jr.
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Config
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#