How to actively develop and integration test a Node package within another Node package
Ideally, you'll want to develop your Node package in a self-contained way, thorugh unit testing and examples, independent from other packages. Sometimes, however, you'll want to develop your Node package within another package for integration testing purposes.
-
From your package directory, run
npm link
. This will create a globally-installed symlink to your package.cd ~/code/my-package
npm link