npm install -g git-cz
“git commitizen” is a package to help you follow the Conventional Commits specification.
After staging your changes (
git add .) run
git cz and it will ask you a few questions and build your commit message based on them.
ncu or npm-check
npm install -g npm-check-updates or
npm install -g npm-check
These are 2 different packages to help you manage/upgrade packages on your projects.
I (and most people) prefer
npm-check-updates (ncu), it’s simple to use, and has a cleaner output.
After installing run
ncu on your project root folder to see the packages that can be upgraded, and
ncu -u to upgrade them followed by
npm install -g tldr
As the name suggests this package gives you quick/short access to documentation, more precisely Linux man pages.
npm install -g n
n is a package used to change between node versions.
It’s as easy as
n latest or
n stable or
n 12.16.3 and you are now running a different node version. You can combine this with other commands to temporarily run something in a different node version
I used this to temporarily bypass a bug in Gulp 4:
n 10.16.3 && gulp default && n 12.16.3
There’s also an alternative called
npm install -g ts-node
(make sure you have TypeScript installed:
npm install -g typescript)
If you have been using TypeScript you had to run
tsc file.ts and then
node file.js or combine them into one command
tsc file.ts && node file.js, this is where
ts-node comes in to save the day.
You just have to run
npm install -g ngrok
nrgok allows you to tunnel/port forward your local ports and gives you a public URL to access them.
Let’s say you have your local project running on localhost:5000, you can port forward it and have a public URL by doing
ngrok http 5000.
Now you have a public URL that you can share with anyone to test your project and as soon as you are done you stop the process and it’s gone.
P.S. Theres also
npm install -g http-server but that one only makes a simple local server for the folder you are in, for that I would recommend that you use Python that is already installed on your system
python3 -m http.server 8000.
npm install -g nodemon
nodemon is a tool that helps develop node.js based applications by automatically restarting the node application when file changes in the directory are detected.
Did you know that you can use it with other languages? Like: TypeScript and Python!? 🤯
Yes, you can use
nodemon to execute your python scripts every time the file changes!
nodemon --quiet file.js
nodemon --exec python3 file.py
I recommend you always add
--quiet to avoid extra debug messages.
By default it will use
.py. (I had to specify
--exec python3 because my system doesn’t have
python correctly mapped)
npm ci instead of
This one isn’t a node package per se but a command
npm ci that you should be using instead of
npm i (short for
Why? You ask.
- It clears your
- Install packages based on the
package-lock.jsonfile respecting exact versions without upgrading.
- Doesn’t modify the
This can be very useful combined with
n to debug something on a given node version and reinstalling the exact same package versions.
npm install -g tetris
Yes, Tetris! Just try it!
Do you know other useful packages that I should be using? Tweet them at me!
Don’t forget to follow me on Github!