TypeScript Compiler API wrapper for static analysis and programmatic code changes.
GitHub Stars


To use:

import { Project } from "https://deno.land/x/ts_morph/mod.ts";

Or import @ts-morph/bootstrap, which uses the same versioning as ts-morph:

import { createProject } from "https://deno.land/x/ts_morph/bootstrap/mod.ts";

Please note that this is currently only mostly useful for analyzing Node projects. See #950 for details on making it easier to analyze Deno code.

Note: These modules are not tested that well as I have not implemented a way to test both the node and deno modules. Please let me know if you notice any behaviour differences with the node module.