0.3.0 • Published 10 years ago

boring-config v0.3.0

Weekly downloads
5
License
MIT
Repository
github
Last release
10 years ago

Boring Config

CSON is great for config files, with less unnecessary tokens than JSON and more consistency than YAML.

Boring config loads a config file. It's deliberately sync - there's no point loading your app until its config file has been parsed.

Example

First you'll need a config file. config.cson is a good name for a config file:

{
	# CSON has comments. Which is neat
	isProduction: null
	someApi:
		authKey: 'someApiKeyGoesHere' # TODO: pretty sure this isn't a real key
		userAgent: 'Mozilla/2.02Gold (Win95; I)'
	someOtherSetting: 'someValue'
}

Then require and use it like this:

var boringConfig = require('boring-config');

var config = boringConfig(__dirname + '/config.cson')

Simple.

0.3.0

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago