https://github.com/archergu/check-package-exists
Check if the npm package exists
https://github.com/archergu/check-package-exists
function npm packages tiny
Last synced: 2 months ago
JSON representation
Check if the npm package exists
- Host: GitHub
- URL: https://github.com/archergu/check-package-exists
- Owner: ArcherGu
- License: mit
- Created: 2022-06-01T03:36:46.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-05-05T19:57:03.000Z (about 1 year ago)
- Last Synced: 2025-05-05T20:49:56.114Z (about 1 year ago)
- Topics: function, npm, packages, tiny
- Language: TypeScript
- Homepage:
- Size: 1.84 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ✅ Check Package Exists
[](https://npm.im/check-package-exists) [](https://npm.im/check-package-exists) [](https://github.com/ArcherGu/check-package-exists/actions/workflows/ci.yml)
Check if the npm package exists.
## ⚙️ Install
```bash
npm i check-package-exists
# Or Yarn
yarn add check-package-exists
# Or PNPM
pnpm add check-package-exists
```
## 📖 Usage
```ts
import { checkPackageExists } from 'check-package-exists'
console.log(checkPackageExists('some-package')) // true or false
```
## 📄 License
MIT License © 2022 [Archer Gu](https://github.com/archergu)