@node-utils-lin/npm-version
v0.0.6
Published
> TODO: description
Downloads
1
Readme
npm-version
TODO: 获取npm的版本详情
Usage
const {getNpmInfo, getNpmVersions, getNpmSemverVersions} = require('npm-version');
const pkg = require('./package.json')
const currentVersion = pkg.version;
const npmName = pkg.name;
const versions = await getNpmSemverVersions(currentVersion, npmName); // 1.0.2
// TODO: DEMONSTRATE API