has-pkg
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

has-pkg

NPM version

Check if a package is installed locally.

import hasPkg from 'has-pkg'

hasPkg('lodash') // true
hasPkg('@types/lodash') // false

Sponsors

This project is part of my Sponsor Program

License

MIT License © 2020-PRESENT Anthony Fu

Readme

Keywords

none

Package Sidebar

Install

npm i has-pkg

Weekly Downloads

366

Version

0.0.1

License

MIT

Unpacked Size

2.49 kB

Total Files

5

Last publish

Collaborators

  • antfu