1.1.0 • Published 9 years ago

rootify v1.1.0

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

rootify

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

Usage

rootify is a browserify transform.

npm i --save-dev rootify

and in your package.json:

  "browserify": {
    "transform": [ "rootify" ]
  }

And optionally..

  "rootify": {
    "rootPath": "./someRelativePath"
  }

And then, instead of:

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

You can use:

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

9 years ago

1.0.6

9 years ago

1.0.5

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