hurrymaplelad hurrymaplelad - 2 months ago 5
Git Question

Depend on a branch or tag using a git URL in a package.json?

Say I've forked a node module with a bugfix and I want to use my fixed version, on a feature branch of course, until the bugfix is merged and released.

What would I scribble into the

dependencies
of my
package.json
?

Answer

From the npm docs:

git://github.com/<user>/<project>.git#<branch>

git://github.com/<user>/<project>.git#feature\/<branch>
Comments