https://github.com/joshuakgoldberg/ts-api-utils
Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. ๐ ๏ธ๏ธ
https://github.com/joshuakgoldberg/ts-api-utils
abstract-syntax-trees tsutils typescript typescript-api
Last synced: 2 months ago
JSON representation
Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. ๐ ๏ธ๏ธ
- Host: GitHub
- URL: https://github.com/joshuakgoldberg/ts-api-utils
- Owner: JoshuaKGoldberg
- License: mit
- Created: 2023-02-05T23:37:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-11T16:39:02.000Z (about 1 year ago)
- Last Synced: 2025-05-15T03:06:56.196Z (about 1 year ago)
- Topics: abstract-syntax-trees, tsutils, typescript, typescript-api
- Language: TypeScript
- Homepage: https://joshuakgoldberg.github.io/ts-api-utils
- Size: 2.82 MB
- Stars: 99
- Watchers: 6
- Forks: 8
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
TypeScript API Utils
Utility functions for working with TypeScript's API.
Successor to the wonderful tsutils.
๐ ๏ธ๏ธ
## Usage
```shell
npm i ts-api-utils
```
```ts
import * as tsutils from "ts-api-utils";
tsutils.forEachToken(/* ... */);
```
### API
`ts-api-utils` provides many utility functions.
Check out our API docs for details:
๐ [ts-api-utils API docs](https://joshuakgoldberg.github.io/ts-api-utils).
### Supported Versions
`ts-api-utils` supports TypeScript versions `5.5.2` and above and Node versions `20.19.0` and above.
Note: `ts-api-utils` will not work with the TypeScript Native Preview (TypeScript 7) for the foreseeable future, due to
unknowns around the future of the TypeScript Native API.\
See their list of [What Works So Far?](https://github.com/microsoft/typescript-go#what-works-so-far) for details.
## Development
See [`.github/CONTRIBUTING.md`](./.github/CONTRIBUTING.md).
Thanks! ๐