has-pkg
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
Check if a package is installed locally.
import hasPkg from 'has-pkg'
hasPkg('lodash') // true
hasPkg('@types/lodash') // false
This project is part of my Sponsor Program
MIT License © 2020-PRESENT Anthony Fu
npm i has-pkg
366
0.0.1
MIT
2.49 kB
5