@saber2pr/ts-compiler
v0.3.22
Published
ts compiler utils.
Downloads
322
Readme
@saber2pr/ts-compiler
ts compiler utils.
yarn add @saber2pr/ts-compiler
Usage
see document: https://saber2pr.top/ts-compiler/
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