find latest npm from package.json code example
Example 1: npm check updates
> npx npm-check-updates -u
Example 2: npm check package version
local packages:
~$ npm list
globally installed packages:
~$ npm list -g
specific package:
~$ npm list <package>