$ cnpm install has-pkg
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
Copyright 2013 - present © cnpmjs.org | Home |