update-notifier-cjs
Version:
Update notifications for your CLI app, maintained in CommonJS (CJS)
12 lines (9 loc) • 334 B
JavaScript
;
const packageJson = require('../package-json');
const latestVersion = async (packageName, options) => {
const {version} = await packageJson(packageName.toLowerCase(), options);
return version;
};
module.exports = latestVersion;
// TODO: Remove this for the next major release
module.exports.default = latestVersion;