4.0.0 • Published 2 months ago

pkg-versions v4.0.0

Weekly downloads
116
License
MIT
Repository
github
Last release
2 months ago

pkg-versions

Get the version numbers of a package from the npm registry

Install

npm install pkg-versions

Usage

import packageVersions from 'pkg-versions';

console.log(await packageVersions('ava'));
//=> {'0.0.3', '0.0.4', …}

API

packageVersions(packageName)

Returns a Promise<Set<string>> with the versions.

packageName

Type: string

The name of the package to look up versions for.

Related