2.0.0 • Published 9 years ago

rooty v2.0.0

Weekly downloads
115
License
MIT
Repository
github
Last release
9 years ago

rooty

Allow root-of-project (closest package.json) requires in node with ^

Usage

Require rooty as the first thing in your entry file:

var rooty = require('rooty');

rooty();

// more app code

Can also take an optional root path

rooty('./server');

And then, instead of:

var something = require('../../../../../something');

You can use:

var something = require('^something');
2.0.0

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago