Check if the npm package exists.
npm i check-package-exists
# Or Yarn
yarn add check-package-exists
# Or PNPM
pnpm add check-package-exists
import { checkPackageExists } from 'check-package-exists'
console.log(checkPackageExists('some-package')) // true or false
MIT License © 2022 Archer Gu