Skip to content

caryhaynie/config.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

config.js -- node.js configuration for busy people

install ( via git and npm linking )

$ git clone https://github.com/caryhaynie/config.js.git

$ cd config.js; sudo npm link

$ npm link config.js

install ( via npm )

$ npm install config.js

usage

var config = require("config.js").getConfig()

info

config.js is a simple library that allows node.js developers to store configuration data in a JSON file that sits next to the script where they need it. To load your config, simply call require("config.js").getConfig() and read the resulting object. If config.js can't find a config file, it will simply return an empty object. If it can't parse the JSON data, it will throw a Syntax Error.

About

simple node.js configuration files ... made simple.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published