obtain

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i obtain

Weekly Downloads

8

Version

0.0.1

License

MIT

Last publish

Collaborators

  • jeffandersen