require-anywhere
v1.0.0
Published
Require files relative to the position of your package.json
Downloads
2
Maintainers
Readme
require-anywhere
Require files relative to the position of your package.json
Install
npm install require-anywhere
Usage
var anywhere = require("require-anywhere")(__dirname);
// Requires the file 'utils.js' in '/path/to/your-app/libs/'
// where '/path/to/your-app/' is the directory where your package.json resides
var utils = anywhere("libs/utils");