First, you want to make sure your package-JSON file is created. Your "main" is the file that will be loaded when your module is required. In that file, add a function as a property of the exports object (so, exports.propertyName = function() { followed by that function} ). This will make the function available to other code. Then, publish your package to npm using npm publish. On the command line, make a new directory to test that directory outside your project directory, cd into that directory, and install your module by typing npm install <your-module-name>. Then you can create a file, require your module, and run it to see if it works.