This article will show you how to configure npm modules in a proper way and use Buddy to automatically test and publish your packages Objectives of this guide This guide will show you how to: Create an npm package the package in the registry Publish testing and publishing of the npm package thanks to Buddy Automate Requirements The first thing you need to do is to install the following things: GIT Node and npm Creating an npm package Begin with creating a folder and initializing a Git repository so that your package remains safe under version control: mkdir my_first_npm_modulecd my_first_npm_modulegit init Next, add which will contain the details of your module. You can easily do that by running this command: package.json npm init You will be asked to provide the information about your package: name version (usually set to ) main value index.js Once done, check the contents of . It should look like this: package.json { "name": "buddy-demo-package", "version": "1.0.3", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC"} In the functions should be provided as a property of the object. Here's an example: index.js exports exports.printMsg = function() {console.log("My first package message");} Once everything is set, make sure to commit your files to the repo… Like what you read? . Follow the full article here