.NET
Java
Others?
App Store
Google Play
Others?
npm
Others?
https://www.npmjs.com/signup
$ npm login
Let's start by creating a new directory
$ mkdir newdir
$ cd newdir
Let's add a greeting function
exports.greeting = function(){
console.log('Hello World!');
};
Use npm's init to generate metadata
$ npm init
Sample package.json file
{
"name": "newdir",
"version": "1.0.0",
"description": "simple greeting function",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "abel@mit.edu",
"license": "MIT"
}
Push code to registry
$ npm publish
https://www.npmjs.com/~YourNpmUsername
Consume module published by classmate