There is a npm package which provides functionality to check the up-to-date status of the npm packages and update them to latest versions.
Here is detail information about the package.
https://www.npmjs.com/package/npm-check-updates
Usage is simple
- Install the package using
npm install -g npm-check-updates
- Check latest versions using
ncu
- Update to latest versions using
ncu -u