obtain
v0.0.1
Published
Obtain provides a require interface relative to your project's root.
Downloads
4
Readme
obtain
Obtain provides a require interface relative to your project's root.
// lib/directory/subdir/subdir/module.js
var obtain = require('obtain')(__dirname);
// File required through obtain
var module = obtain('./lib/module.js');
// Same file required normally
var module = require('../../../module');
Uses your project's package.json
file as point of reference