Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saber2pr/ts-compiler
Typescript Compiler Utils.
https://github.com/saber2pr/ts-compiler
compiler typescript
Last synced: 10 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 (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-18T08:13:27.000Z (20 days ago)
- Last Synced: 2024-10-20T23:39:49.746Z (17 days ago)
- Topics: compiler, typescript
- Language: TypeScript
- Homepage: https://saber2pr.top/ts-compiler/
- Size: 1.01 MB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# @saber2pr/ts-compiler
[![npm](https://img.shields.io/npm/v/@saber2pr/ts-compiler.svg?color=blue)](https://www.npmjs.com/package/@saber2pr/ts-compiler)
[![codecov](https://codecov.io/gh/Saber2pr/ts-compiler/branch/master/graph/badge.svg?token=DI9E88OIZU)](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
```