Simple configuration module for node.js
CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
README.md
index.coffee
package.json

README.md

coffee-config

Simple configuration module for node.js

Usage with config.json in project root directory:

$ npm install coffee-config

config = require 'configurator'
config.async ->
  port = config.get 'port'
  address = config.production.address

# or

config.sync()
port = config.get 'port'
address = config.production.address