Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️
See the codeUtility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️
npm i ts-api-utils
import * as tsutils from "ts-api-utils";
tsutils.forEachToken(/* ... */);
ts-api-utils provides many utility functions.
Check out our API docs for details:
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? for details.
See .github/CONTRIBUTING.md.
Thanks! 💖
1,724 followers · starred Dec 2024
421 followers · starred Sep 2023
82 followers · starred Aug 2023
319 followers · starred Jul 2025
Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️
See the codeUtility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️
npm i ts-api-utils
import * as tsutils from "ts-api-utils";
tsutils.forEachToken(/* ... */);
ts-api-utils provides many utility functions.
Check out our API docs for details:
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? for details.
See .github/CONTRIBUTING.md.
Thanks! 💖
1,724 followers · starred Dec 2024
421 followers · starred Sep 2023
82 followers · starred Aug 2023
319 followers · starred Jul 2025