{"name":"ts-api-utils","version":"1.2.0","description":"Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️","repository":{"type":"git","url":"git+https://github.com/JoshuaKGoldberg/ts-api-utils.git"},"license":"MIT","author":{"name":"JoshuaKGoldberg","email":"npm@joshuakgoldberg.com"},"type":"module","exports":{".":{"types":{"import":"./lib/index.d.ts","require":"./lib/index.d.cts"},"import":"./lib/index.js","require":"./lib/index.cjs"}},"main":"./lib/index.js","scripts":{"build":"tsup src/index.ts && cp lib/index.d.ts lib/index.d.cts","docs":"typedoc","docs:serve":"npx --yes http-server docs/generated","format":"prettier \"**/*\" --ignore-unknown","lint":"eslint . .*js --max-warnings 0 --report-unused-disable-directives","lint:docs":"typedoc --validation --treatValidationWarningsAsErrors","lint:knip":"knip","lint:knip:production":"knip --config knip.production.jsonc --production","lint:md":"markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line","lint:package-json":"npmPkgJsonLint .","lint:packages":"pnpm dedupe --check","lint:spelling":"cspell \"**\" \".github/**/*\"","prepare":"husky install","should-semantic-release":"should-semantic-release --verbose","test":"vitest","tsc":"tsc"},"lint-staged":{"*":"prettier --ignore-unknown --write"},"devDependencies":{"@phenomnomnominal/tsquery":"^6.1.3","@release-it/conventional-changelog":"^8.0.1","@types/eslint":"^8.56.0","@typescript-eslint/eslint-plugin":"^6.15.0","@typescript-eslint/parser":"6.20.0","@typescript/vfs":"^1.5.0","@vitest/coverage-v8":"^1.1.0","console-fail-test":"^0.2.3","cspell":"^8.2.3","eslint":"^8.56.0","eslint-plugin-deprecation":"^2.0.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-jsdoc":"^48.0.0","eslint-plugin-jsonc":"^2.11.2","eslint-plugin-markdown":"^3.0.1","eslint-plugin-n":"^16.5.0","eslint-plugin-no-only-tests":"^3.1.0","eslint-plugin-perfectionist":"^2.5.0","eslint-plugin-regexp":"^2.1.2","eslint-plugin-vitest":"^0.3.18","eslint-plugin-yml":"^1.11.0","husky":"^9.0.0","jsonc-eslint-parser":"^2.4.0","knip":"^4.0.0","lint-staged":"^15.2.0","markdownlint":"^0.33.0","markdownlint-cli":"^0.39.0","npm-package-json-lint":"^7.1.0","npm-package-json-lint-config-default":"^6.0.0","prettier":"^3.1.1","prettier-plugin-curly":"^0.1.3","prettier-plugin-packagejson":"^2.4.7","release-it":"^17.0.1","sentences-per-line":"^0.2.1","should-semantic-release":"^0.2.1","tsup":"^8.0.1","typedoc":"^0.24.8","typedoc-plugin-coverage":"^2.2.0","typedoc-plugin-custom-validation":"^1.1.1","typedoc-plugin-konamimojisplosion":"^0.0.2","typedoc-plugin-mdn-links":"^3.1.8","typedoc-plugin-versions":"^0.2.4","typescript":"^5.3.3","vitest":"^1.1.0","yaml-eslint-parser":"^1.2.2"},"peerDependencies":{"typescript":">=4.2.0"},"packageManager":"pnpm@8.15.1","engines":{"node":">=18"},"publishConfig":{"provenance":true},"_id":"ts-api-utils@1.2.0","gitHead":"8e032767d92bcc722ac58a8540d920a8b049424a","types":"./lib/index.d.ts","bugs":{"url":"https://github.com/JoshuaKGoldberg/ts-api-utils/issues"},"homepage":"https://github.com/JoshuaKGoldberg/ts-api-utils#readme","_nodeVersion":"21.6.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-d+3WxW4r8WQy2cZWpNRPPGExX8ffOLGcIhheUANKbL5Sqjbhkneki76fRAWeXkaslV2etTb4tSJBSxOsH5+CJw==","shasum":"48c31073e7ae7868d27ffabef993a2de8c2b006f","tarball":"http://registry-npm.ywwl.com/ts-api-utils/download/ts-api-utils-1.2.0.tgz","fileCount":9,"unpackedSize":792406,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/ts-api-utils@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD68pEidzZsgTAXiOsgL2Mt1hMVyHfr61QSgiGJLqlTjgIgbicCSY0Zs3crdC2EAU421zgnr8rBWOumdx+Mm52FnKY="}],"size":117312,"noattachment":false,"key":"/ts-api-utils/-/ts-api-utils-1.2.0.tgz"},"_npmUser":{"name":"joshuakgoldberg","email":"npm@joshuakgoldberg.com"},"directories":{},"maintainers":[{"name":"joshuakgoldberg","email":"npm@joshuakgoldberg.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-api-utils_1.2.0_1707146788927_0.6798493187461359"},"_hasShrinkwrap":false,"readme":"<h1 align=\"center\">TypeScript API Utils</h1>\n\n<p align=\"center\">\n\tUtility functions for working with TypeScript's API.\n\tSuccessor to the wonderful <a href=\"https://github.com/ajafff/tsutils\">tsutils</a>. 🛠️️\n</p>\n\n<p align=\"center\">\n\t<a href=\"#contributors\" target=\"_blank\">\n<!-- prettier-ignore-start -->\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n<img alt=\"All Contributors: 6 👪\" src=\"https://img.shields.io/badge/all_contributors-6_👪-21bb42.svg\" />\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n<!-- prettier-ignore-end -->\n\t</a>\n\t<a href=\"https://codecov.io/gh/JoshuaKGoldberg/ts-api-utils\" target=\"_blank\">\n\t\t<img alt=\"Codecov Test Coverage\" src=\"https://codecov.io/gh/JoshuaKGoldberg/ts-api-utils/branch/main/graph/badge.svg\"/>\n\t</a>\n\t<a href=\"https://github.com/JoshuaKGoldberg/ts-api-utils/blob/main/.github/CODE_OF_CONDUCT.md\" target=\"_blank\">\n\t\t<img alt=\"Contributor Covenant\" src=\"https://img.shields.io/badge/code_of_conduct-enforced-21bb42\" />\n\t</a>\n\t<a href=\"https://github.com/JoshuaKGoldberg/ts-api-utils/blob/main/LICENSE.md\" target=\"_blank\">\n\t\t<img alt=\"License: MIT\" src=\"https://img.shields.io/github/license/JoshuaKGoldberg/ts-api-utils?color=21bb42\">\n\t</a>\n\t<a href=\"https://github.com/sponsors/JoshuaKGoldberg\" target=\"_blank\">\n\t\t<img alt=\"Sponsor: On GitHub\" src=\"https://img.shields.io/badge/sponsor-on_github-21bb42.svg\" />\n\t</a>\n\t<img alt=\"Style: Prettier\" src=\"https://img.shields.io/badge/style-prettier-21bb42.svg\" />\n\t<img alt=\"TypeScript: Strict\" src=\"https://img.shields.io/badge/typescript-strict-21bb42.svg\" />\n\t<img alt=\"npm package version\" src=\"https://img.shields.io/npm/v/ts-api-utils?color=21bb42\" />\n</p>\n\n## Usage\n\n```shell\nnpm i ts-api-utils\n```\n\n```ts\nimport * as tsutils from \"ts-api-utils\";\n\ntsutils.forEachToken(/* ... */);\n```\n\n### API\n\n`ts-api-utils` provides many utility functions.\nCheck out our API docs for details:\n\n📝 [ts-api-utils API docs](https://joshuakgoldberg.github.io/ts-api-utils).\n\n## Development\n\nSee [`.github/CONTRIBUTING.md`](./.github/CONTRIBUTING.md).\nThanks! 💖\n\n## Contributors\n\nMany thanks to [@ajafff](https://github.com/ajafff) for creating the original [`tsutils`](https://github.com/ajafff/tsutils) ([original license: MIT](https://github.com/ajafff/tsutils/blob/26b195358ec36d59f00333115aa3ffd9611ca78b/LICENSE)) that this project was originally based on! 🙏\n\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<!-- spellchecker: disable -->\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tbody>\n    <tr>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://effectivetypescript.com\"><img src=\"https://avatars.githubusercontent.com/u/98301?v=4?s=100\" width=\"100px;\" alt=\"Dan Vanderkam\"/><br /><sub><b>Dan Vanderkam</b></sub></a><br /><a href=\"https://github.com/JoshuaKGoldberg/ts-api-utils/issues?q=author%3Adanvk\" title=\"Bug reports\">🐛</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://blog.jmchor.dev\"><img src=\"https://avatars.githubusercontent.com/u/110151013?v=4?s=100\" width=\"100px;\" alt=\"Johannes Chorzempa\"/><br /><sub><b>Johannes Chorzempa</b></sub></a><br /><a href=\"https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=jmchor\" title=\"Documentation\">📖</a> <a href=\"https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=jmchor\" title=\"Code\">💻</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"http://www.joshuakgoldberg.com\"><img src=\"https://avatars.githubusercontent.com/u/3335181?v=4?s=100\" width=\"100px;\" alt=\"Josh Goldberg\"/><br /><sub><b>Josh Goldberg</b></sub></a><br /><a href=\"https://github.com/JoshuaKGoldberg/ts-api-utils/issues?q=author%3AJoshuaKGoldberg\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=JoshuaKGoldberg\" title=\"Code\">💻</a> <a href=\"https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=JoshuaKGoldberg\" title=\"Documentation\">📖</a> <a href=\"#projectManagement-JoshuaKGoldberg\" title=\"Project Management\">📆</a> <a href=\"https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=JoshuaKGoldberg\" title=\"Tests\">⚠️</a> <a href=\"#tool-JoshuaKGoldberg\" title=\"Tools\">🔧</a> <a href=\"#maintenance-JoshuaKGoldberg\" title=\"Maintenance\">🚧</a> <a href=\"#infra-JoshuaKGoldberg\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">🚇</a> <a href=\"#ideas-JoshuaKGoldberg\" title=\"Ideas, Planning, & Feedback\">🤔</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://twitter.com/kirjs\"><img src=\"https://avatars.githubusercontent.com/u/2545357?v=4?s=100\" width=\"100px;\" alt=\"Kirill Cherkashin\"/><br /><sub><b>Kirill Cherkashin</b></sub></a><br /><a href=\"https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=kirjs\" title=\"Code\">💻</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/ajafff\"><img src=\"https://avatars.githubusercontent.com/u/11968040?v=4?s=100\" width=\"100px;\" alt=\"Klaus Meinhardt\"/><br /><sub><b>Klaus Meinhardt</b></sub></a><br /><a href=\"https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=ajafff\" title=\"Code\">💻</a> <a href=\"https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=ajafff\" title=\"Tests\">⚠️</a></td>\n      <td align=\"center\" valign=\"top\" width=\"14.28%\"><a href=\"https://github.com/RebeccaStevens\"><img src=\"https://avatars.githubusercontent.com/u/7224206?v=4?s=100\" width=\"100px;\" alt=\"Rebecca Stevens\"/><br /><sub><b>Rebecca Stevens</b></sub></a><br /><a href=\"https://github.com/JoshuaKGoldberg/ts-api-utils/issues?q=author%3ARebeccaStevens\" title=\"Bug reports\">🐛</a> <a href=\"https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens\" title=\"Code\">💻</a> <a href=\"https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens\" title=\"Documentation\">📖</a> <a href=\"#projectManagement-RebeccaStevens\" title=\"Project Management\">📆</a> <a href=\"https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens\" title=\"Tests\">⚠️</a> <a href=\"#tool-RebeccaStevens\" title=\"Tools\">🔧</a> <a href=\"#infra-RebeccaStevens\" title=\"Infrastructure (Hosting, Build-Tools, etc)\">🚇</a> <a href=\"#maintenance-RebeccaStevens\" title=\"Maintenance\">🚧</a> <a href=\"#ideas-RebeccaStevens\" title=\"Ideas, Planning, & Feedback\">🤔</a></td>\n    </tr>\n  </tbody>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n<!-- spellchecker: enable -->\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n> 💙 This package is based on [@JoshuaKGoldberg](https://github.com/JoshuaKGoldberg)'s [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app).\n\n> _\"My tools! I have to have my tools!\" - Dennis Reynolds_\n","publish_time":1707146789139,"_cnpm_publish_time":1707146789139,"dist-tags":{"beta":"1.0.0-beta","latest":"2.5.0","rc":"3.0.0-rc.1"}}