0.1.1 • Published 5 years ago

npm-latest-versions v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

npm-latest-version

Check npm latest versions

Type definition

export interface Options {
    registry?: string;
    module: string;
    since?: Date;
}
export interface Result {
    [distTag: string]: {
        version: string;
        time: Date;
    };
}
export default function npmLatestVersions(options: Options): Promise<Result>

Usage

import npmLatestVersions from 'npm-latest-versions'

(async () => {
  const versions = await npmLatestVersions({
    module: 'express',
    since: new Date('2019/01/01')
  })
  // => { latest: { version: '4.17.1', time: '2019-05-26T04:25:34.606Z' } }
})()
0.1.1

5 years ago

0.1.0

5 years ago