Get the version numbers of a package from the npm registry
MIT License
Get the version numbers of a package from the npm registry
npm install pkg-versions
import packageVersions from 'pkg-versions';
console.log(await packageVersions('ava'));
//=> {'0.0.3', '0.0.4', …}
Returns a Promise<Set<string>>
with the versions.
Type: string
The name of the package to look up versions for.