Negligent Parachute Maintainers
    Wondering what’s next for npm?Check out our public roadmap! »

    rootify

    1.1.0 • Public • Published

    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');
    

    Install

    npm i rootify

    DownloadsWeekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • avatar
    • avatar