JSPM

has-pkg

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 502
  • Score
    100M100P100Q99106F
  • License MIT

Check if package is installed

Package Exports

  • has-pkg

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (has-pkg) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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