'use strict'; const packageJson = require('package-json'); const lastestVersion = async (packageName, options) => { const {version} = await packageJson(packageName.toLowerCase(), options); return version; }; module.exports = lastestVersion; // TODO: Remove this for the next major release module.exports.default = lastestVersion;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
index.d.ts | File | 981 B | 0644 |
|
index.js | File | 334 B | 0644 |
|
license | File | 1.08 KB | 0644 |
|
package.json | File | 1.78 KB | 0644 |
|
readme.md | File | 1.13 KB | 0644 |
|