cson-config
Load config.cson to process.config
Last updated 5 years ago by bender .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cson-config 
SYNC missed versions from official npm registry.

Build Status Dependency Status npm version

Installation

npm install cson-config

Usage

require('cson-config').load() or require('cson-config').load('/path/to/config.cson')

all variables are exported to process.config

if .env is present content will be auto loaded to proces.env before loading config NAME=server1 PORT=5566

see test/

Draft

csonConfig = require 'cson-config'
mongoq = require 'mongoq'

csonConfig.use /^mongodb:/, (url) ->
    return mongoq url
csonConfig.load()

All values in configuration matching /^mongodb:/ will be replaced by instance of mongoq

Current Tags

  • 0.1.12                                ...           latest (5 years ago)

13 Versions

  • 0.1.12                                ...           5 years ago
  • 0.1.11                                ...           5 years ago
  • 0.1.10                                ...           5 years ago
  • 0.1.9                                ...           6 years ago
  • 0.1.8                                ...           6 years ago
  • 0.1.7                                ...           7 years ago
  • 0.1.6                                ...           7 years ago
  • 0.1.5                                ...           7 years ago
  • 0.1.4                                ...           7 years ago
  • 0.1.3                                ...           7 years ago
  • 0.1.2                                ...           7 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (2)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |