{"id":27874274,"url":"https://github.com/inspect-js/hastypes","last_synced_at":"2026-01-12T05:52:23.466Z","repository":{"id":57261764,"uuid":"110541690","full_name":"inspect-js/hastypes","owner":"inspect-js","description":"Does the given package have TypeScript types?","archived":false,"fork":false,"pushed_at":"2025-02-03T21:56:36.000Z","size":27,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-26T21:42:38.364Z","etag":null,"topics":["cli","javascript","nodejs","shell","typescript"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/hastypes","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inspect-js.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-13T11:47:53.000Z","updated_at":"2025-02-03T21:56:40.000Z","dependencies_parsed_at":"2022-08-25T06:11:44.700Z","dependency_job_id":null,"html_url":"https://github.com/inspect-js/hastypes","commit_stats":null,"previous_names":["elliotblackburn/has-types","bluehatbrit/has-types","inspect-js/hastypes"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fhastypes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fhastypes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fhastypes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fhastypes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inspect-js","download_url":"https://codeload.github.com/inspect-js/hastypes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252423458,"owners_count":21745593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","javascript","nodejs","shell","typescript"],"created_at":"2025-05-05T01:32:17.514Z","updated_at":"2026-01-12T05:52:23.460Z","avatar_url":"https://github.com/inspect-js.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hastypes \u003csup\u003e[![Version Badge][npm-version-svg]][package-url]\u003c/sup\u003e\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nDoes the given package have TypeScript types?\n\n**Inspired by https://github.com/ofrobots/typescript-friendly**\n\n## Example\n\n```sh\n$ hastypes hastypes # =\u003e integrated\n$ hastypes react@19 # =\u003e @types/react\n$ hastypes mdpdf@1 # =\u003e none\n```\n\n```mjs\nimport hasTypes from 'hastypes';\nimport assert from 'assert';\n\nhasTypes('hastypes').then(x =\u003e assert.equal(x, true));\nhasTypes('react@19').then(x =\u003e assert.equal(x, '@types/react'));\nhasTypes('mdpdf@1').then(x =\u003e assert.equal(x, false));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/hastypes\n[npm-version-svg]: https://versionbadg.es/elliotblackburn/has-types.svg\n[deps-svg]: https://david-dm.org/elliotblackburn/has-types.svg\n[deps-url]: https://david-dm.org/elliotblackburn/has-types\n[dev-deps-svg]: https://david-dm.org/elliotblackburn/has-types/dev-status.svg\n[dev-deps-url]: https://david-dm.org/elliotblackburn/has-types#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/hastypes.png?downloads=true\u0026stars=true\n[license-image]: https://img.shields.io/npm/l/hastypes.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/hastypes.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=hastypes\n[codecov-image]: https://codecov.io/gh/elliotblackburn/has-types/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/elliotblackburn/has-types/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/elliotblackburn/has-types\n[actions-url]: https://github.com/elliotblackburn/has-types/actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Fhastypes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finspect-js%2Fhastypes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finspect-js%2Fhastypes/lists"}