0.1.3 • Published 3 years ago

node-ts-parser v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

node-ts-parser

用于 node 环境下 转换 typescript 文件 成 js 并且获取其内容

安装

yarn add node-ts-parser

使用

typescript

import { tsParser } from 'node-ts-parser'
const [error, config] = tsParser({ context: __dirname, file: 'path/to/yyl.config.ts' })

js

const { tsParse } = require('node-ts-parser')
const [error, config] = tsParser({ context: __dirname, file: 'path/to/yyl.config.ts' })
0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago