How To Add code bellow, to your main app.js file var hello = require('mansur-npm-pkg'); hello('World'); Open same folder with console, and call it =): $ node app.js