0.1.0 • Published 9 years ago

config-file-nodash v0.1.0

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

config-file NPM version

Find and load a YAML or JSON config file from a local project, installed npm module, or the user's home directory.

Installation

npm:

npm i config-file --save

bower:

bower install config-file --save

Usage

var config = require('config-file');

config.load

config.load('.whateverrc'); // assumes JSON
config.load('.whateverrc', {parse: 'yaml'});

config.npmLoad

config.npmLoad('foo'); // npm module name
config.npmLoad('foo', 'package.json'); // default is package.json, can be anything
config.npmLoad('foo', '.whatever.yml.', {parse: 'yaml'});

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors. Released under the MIT license