index.js 334 B

1234567891011
  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;