Skip to content

GlennPorter/alt-dependency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alt-Dependency

A little utility to rename a dependency in an npm package.json file to something else. This can be useful for test builds.

Install

npm install -g alt-dependency

Usage

Move to the directory containing the package.json you want to alter and run the following:

alt-dependency oldDependency newDependency

The above example would change this:

"dependencies": { "oldDependency": "1.2.x" }

...to this:

"dependencies": { "newDependency": "1.2.x" }

Thanks

Based on testbuild by Alex Latchford.

About

Renames a dependency in a package.json file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published