sequire

0.0.2 • Public • Published

Sequire

require modules from the root of your application without the ../../{im lost notation}

Installation

npm install sequire

Usage

var mod = require('something/from/nearest/parent/folder/with/package.json');

OR

This will return an absolute path to the module (?)

var mod = require('something/from/nearest/parent/folder/with/package.json', true);

Thoughts ...

? Maybe it should return a relative path from calling file?

Readme

Keywords

Package Sidebar

Install

npm i sequire

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • renegare