get-yo-rc-path
Get the path of the nearest .yo-rc.json file
Install
npm install --save get-yo-rc-path
Usage
ES2015
// directory structure// /user/// - home/// - awesome-project/// - script.js// - .yo-rc.json // script.js; ; getYoRcPathdir;
ES5
// directory structure// /user/// - home/// - awesome-project/// - script.js// - .yo-rc.json // script.jsvar getYoRcPath = ; ; getYoRcPathdir;
API
getYoRcPath()
Returns a Promise that resolves to a String of the full path or null if not found.
getYoRcPath.dir()
Returns a Promise that resolves to a String of the directory or null if not found.
LICENSE
MIT © Dustin Specker