/is-package-deprecated

Check if a package is deprecated

Primary LanguageTypeScriptMIT LicenseMIT

is-package-deprecated

Check if a package is deprecated

Install

Using npm

$ npm install is-package-deprecated

Using yarn

$ yarn add is-package-deprecated

Usage

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
})();