npm get current package version code example Example 1: npm get latest version of package npm show {pkg} version Example 2: npm get version npm view version