mirror of https://github.com/MaxLeiter/Drift
You cannot 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
334 B
JavaScript
12 lines
334 B
JavaScript
'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;
|