Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
remap npm package versions dynamicially
C++ C JavaScript Shell Perl D Other
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
README.md
example.js
go.js
index.js
npm-remapper.js
package.js
package.json
semver.js

README.md

NpmRemapper

detect and reassign what npm modules you are using.

useful for automating testing of dependency versions.

Usuage

npm-remapper script.js

this will run script and print out a tree of the npm packages it's loaded.

you can tell it to load using different versions of the modules as well:

npm-remapper -remap package 0.0.0 script.js

why?

intended purpose of this tool is to detect version dependency by testing your code with different dependency versions (easily!) so you can know what versions work what works and what breaks.

how?

npm-remapper loads modules by replacing 'require'. this means it can be there to detect what is loading. this is not how npm works, but this is a different use-case.

Something went wrong with that request. Please try again.