https://github.com/saber2pr/ts-compiler
Typescript Compiler Utils.
https://github.com/saber2pr/ts-compiler
compiler typescript
Last synced: 8 days ago
JSON representation
Typescript Compiler Utils.
- Host: GitHub
- URL: https://github.com/saber2pr/ts-compiler
- Owner: Saber2pr
- Created: 2021-07-17T08:19:57.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-18T08:13:27.000Z (9 months ago)
- Last Synced: 2025-06-22T19:05:20.941Z (8 days ago)
- Topics: compiler, typescript
- Language: TypeScript
- Homepage: https://saber2pr.top/ts-compiler/
- Size: 1.01 MB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# @saber2pr/ts-compiler
[](https://www.npmjs.com/package/@saber2pr/ts-compiler)
[](https://codecov.io/gh/Saber2pr/ts-compiler)> ts compiler utils.
```bash
yarn add @saber2pr/ts-compiler
```### Usage
see document: https://saber2pr.top/ts-compiler/
```ts
import {
readTsExport,
readTsFileExport,
traverser,
} from '@saber2pr/ts-compiler'readTsFileExport('./test.ts').then(res => {
// res is value exported from ./test.ts
console.log(res)
console.log(res.test)
})const ast = traverser.createAstNode(`your code`)
traverser.findJsxElementByTagName(ast, 'View')
// traverser.findXXX
```