DEV Community 👩‍💻👨‍💻

Cover image for Keep your JavaScript up to date - kuwjs
Meabed
Meabed

Posted on • Updated on • Originally published at meabed.com

Keep your JavaScript up to date - kuwjs

JavaScript NPM packages changes very often 🔥JS community is the largest, contributors are very active and it is always good day to use JS 😆.

So you have to keep your packages up to date, Why?

  • Getting latest security fixes and patches.
  • Getting new improvements - specially performance related.
  • Getting new features and improvements that didn't exist before.
  • Getting dependencies updated for your packages.
  • Utilizing newer node.js , browser capabilities and v8 engine updates and releases.

Keeping up to date with project locally installed packages and globally installed packages become a challenge.

My 3 favorite tools I use daily to keep up with JS.

1 - npm-check

Keep your globally node.js npm packages up to date.


$ npm install -g npm-check

# check global installed packages and display existing version, new version and link to changelog or website.

$ npm-check -ug

Enter fullscreen mode Exit fullscreen mode

npm-check -ug
npm-check -ug # installation of updated packages

2 - npm-check-updates

Keep your node.js npm local project packages up to date.


$ npm install -g npm-check-updates

# check locally project installed packages and updgrade packages.json

$ ncu -u

Enter fullscreen mode Exit fullscreen mode

ncu -u # updates packages.json

3 - typesync

Keep your types synced and up to date - one of my favorite time saving and productivity packages!


$ npm install -g typesync

# check locally project installed packages and add or update all types needed.

$ typesync

Enter fullscreen mode Exit fullscreen mode

typesync

If you have any other useful ideas or suggestion to enhance productivity or keep your system up to date, I would love to hear it and share it, please feel free to leave it in the comment or @meabed

Happy coding 🤞

Top comments (4)

Collapse
 
lgraziani2712 profile image
Luciano Graziani

Why don't you use npm outdated or yarn outdated?

Collapse
 
kjocevicius profile image
Karolis Jocevičius

Also npm update :)

It's funny how there is npm package for everything. Even npm functions, that arte already included.

Collapse
 
meabed profile image
Meabed

Welcome to the JavaScript world hehe

Collapse
 
meabed profile image
Meabed

I haven’t tried, but thanks for mentioning I’ll try them out!

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.