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

    rebranch-dependencies

    0.1.3 • Public • Published

    This module rewrites the to-install branches of dependencies.

    This is usable in case you wants to deploy your rollout on different environments, and you have dependencies per environment, like we do have in some projects.

    Use CLI

    $ npm i -g rewrite-dependencies-branches-for-npm
    
    $ rebranch-dependencies package.json myHipNewFeatureBranch
    

    Require as module

    Get manipulated package.json back (as object)

    var pathToJson = require('./package.json'),
    lib = require('rewrite-dependencies-branches-for-npm');
     
    json = lib.rebranch(pathToJson, 'myHipNewFeatureBranch');

    Directly write manipulated package.json

    var pathToJson = require('./package.json'),
    lib = require('rewrite-dependencies-branches-for-npm');
     
    lib.rebranchAndWritePackageJson(pathToJson, 'myHipNewFeatureBranch');

    Install

    npm i rebranch-dependencies

    DownloadsWeekly Downloads

    2

    Version

    0.1.3

    License

    MIT

    Last publish

    Collaborators

    • avatar