utils for package.json
$ yarn add --dev ptils
{
"dependencies": {
"react": "^16.0.0"
}
}
const { hasAnyDep } = require('ptils')
hasAnyDep('react')
//=> true
hasAnyDep('lodash')
//=> false
https://github.com/kentcdodds/kcd-scripts/blob/v0.32.2/src/utils.js
Check kentcdodds/kcd-scripts: CLI toolbox for common scripts for my projects. It's awesome package!
Thanks goes to these wonderful people (emoji key):
akameco 💻 📖 |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT © akameco