How to pack NodeJS project into a tarball?

Today I needed to install my brand new NodeJS-developed CLI application in my computer. After a quick search on the Internet I became aware that NPM allows me to do that very easily. The command is: npm pack Run it inside the project that you want to pack (at the same level of the package.json file). Here is an example …