1.0.2 • Published 9 years ago

cwd-config v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

node-cwd-config

node configuration utility based on the current working directory of the process

Installation

npm install cwd-config

Usage

Add config files to a configs directory where you intend to start your node application.

If you use upstart or some other scheme that runs your node application from a script, make sure that the script changes directories before it starts node.

So, if your config file is: /configs/things.json

Then you can access it from any file with:

var cwdConfig = require('cwd-config'); var config = cwdConfig('things');

or

var config = require('cwd-config')('things');

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago