config-file-nodash

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i config-file-nodash

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • mbonaci