config-file-nodash
v0.1.0
Published
Find and load a YAML or JSON config file from a local project, installed npm module, or the user's home directory. Adapded jonschlinkert's config-file package to not depend on lodash just because of the extend function
Downloads
2
Maintainers
Readme
config-file
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