Install
npm install require-dot-file
Usage
This is a simple module used for recursively searching across all parent folders for a file to require.
For example you may want to allow a user to include a dotfile to allow users to configure your project that they can include in their project root.
var requireDotFile = ; // searches for .myconfig in all parent dir recursively (including current dir)var config = ; // searches for .myconfig file in /path/to/start and its parent dirsvar config = ;