Skip to content

inspect-js/hastypes

Repository files navigation

hastypes Version Badge

github actions coverage License Downloads

npm badge

Does the given package have TypeScript types?

Inspired by https://github.com/ofrobots/typescript-friendly

Example

$ hastypes hastypes # => integrated
$ hastypes react@19 # => @types/react
$ hastypes mdpdf@1 # => none
import hasTypes from 'hastypes';
import assert from 'assert';

hasTypes('hastypes').then(x => assert.equal(x, true));
hasTypes('react@19').then(x => assert.equal(x, '@types/react'));
hasTypes('mdpdf@1').then(x => assert.equal(x, false));

Tests

Simply clone the repo, npm install, and run npm test

About

Does the given package have TypeScript types?

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy