Publishing your javascript module to npm
To facilitate you and others using your code, one option is to publish it to a public package manager or registry. One of the most popular for javascript code is the npm registry, a public collection of packages of open-source code for Node.js, front-end web apps, mobile apps, robots, routers, and countless other needs of the JavaScript community.