Questionnaire-of-the-Facebo.../node_modules/latest-version/index.js

12 lines
334 B
JavaScript
Raw Normal View History

2021-03-11 01:43:28 +00:00
'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;