Private Modules in Node

Published November 2016

Yeah I know you can install private git repositories as npm modules, but then you run into problems with development. Today I'm working on an app we use in house at Wheatcrofts called clunky, and yeah it does things with dropbox, so the dropbox logic is a separate module. There will never be any point publishing this dropbox module as a standalone, so it's private.

So the options are:

It's pretty easy to get started..

... and you're done!

Once this is done, you can go to the submodule directory / repo and npm link then back in the primary project dir you can npm link @clunky/dropbox && npm install --save @clunky/dropbox.

This link is the magic that means during development locally, your app is just pulling code directly from your fs, but when deployed it will pull code from the fury.io repo.