Check if a package is deprecated
Using npm
$ npm install is-package-deprecated
Using yarn
$ yarn add is-package-deprecated
const isPackageDeprecated = require('is-package-deprecated');
(async () => {
// Check if a package is deprecated
console.log(await isPackageDeprecated("javascript"));
//=> true
// Check if a package version is deprecated
console.log(await isPackageDeprecated("axios", { version: "0.1.0" }));
//=> true
})();