Initialize the Package → npm init

Create index.js file → Write the code needed for your package
Login to npm from Terminal

npm publish → To Publish Package

Testing Published Package → npm i your-package-name
in my case → npm i package-publish-testing

Test if there are any modules in the published package

Change Version Number in Package.json

run → npm publish
