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

0.3.0 • Public • Published

ptils

Build Status tested with jest styled with prettier All Contributors

utils for package.json

Install

$ yarn add --dev ptils

Usage

{
  "dependencies": {
    "react": "^16.0.0"
  }
}
const { hasAnyDep } = require('ptils')
 
hasAnyDep('react')
//=> true
 
hasAnyDep('lodash')
//=> false

API

hasAnyDep(pkg: string): boolean

hasDep(pkg: string): boolean

hasDevDep(pkg: string): boolean

hasPeerDep(pkg: string): boolean

hasScript(script: string): boolean

Original

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!

Contributors

Thanks goes to these wonderful people (emoji key):


akameco

💻 📖 ⚠️ 🚇

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © akameco

Readme

Keywords

Package Sidebar

Install

npm i ptils

Weekly Downloads

35

Version

0.3.0

License

MIT

Unpacked Size

10.9 kB

Total Files

11

Last publish

Collaborators

  • akameco