Below is a simple example of how to create an .npm-init.js file which should be located in the root of your home directory. When running npm init this script is executed and anything contained in the module.exports section will be inserted into a new package.json or merged