Use Git as an npm registry

Home ···· Cheap Watch · do-not-zip.js · · Defiler · Cheap TS · Memor · Contexty ···· Sites · Other

on → Git | GitHub | GitLab | Bitbucket

NPM2GIT.SH is a simple shell script that lets you use your existing Git repository to publish an npm package, instead of a registry.
Setting up npm registries sucks, and using a central privately-controlled registry kind of also sucks.
So: Just use Git to distribute your built assets like everyone tells you not to!

npm2git avoids much of the unpleasantness of having generated files checked into source control — by creating and tagging completely orphaned commits containing just the files that would be included in npm publish.
Your Git branches and history remain clean, and just contain the files you wrote.