node-ts-parser
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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' })

Readme

Keywords

none

Package Sidebar

Install

npm i node-ts-parser

Weekly Downloads

8

Version

0.1.3

License

MIT

Unpacked Size

7.45 kB

Total Files

8

Last publish

Collaborators

  • jackness