You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
334B

  1. 'use strict';
  2. const packageJson = require('package-json');
  3. const lastestVersion = async (packageName, options) => {
  4. const {version} = await packageJson(packageName.toLowerCase(), options);
  5. return version;
  6. };
  7. module.exports = lastestVersion;
  8. // TODO: Remove this for the next major release
  9. module.exports.default = lastestVersion;