# node-ts-parser

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

Latest version **0.1.3** (published 2021-05-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-ts-parser
pnpm add node-ts-parser
yarn add node-ts-parser
bun add node-ts-parser
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2021-05-11 |
| First published | 2021-04-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | jackness1208 |
| Maintainers | jackness |

## Links

- npm: https://www.npmjs.com/package/node-ts-parser
- Repository: https://github.com/jackness1208/ts-parser
- Homepage: https://github.com/jackness1208/ts-parser#readme
- Issues: https://github.com/jackness1208/ts-parser/issues
- npm.io page: https://npm.io/package/node-ts-parser

## Dependencies (1)

- [typescript](https://npm.io/package/typescript.md) ^4.2.4

## Recent versions

- 0.1.3 (latest) — 2021-05-11
- 0.1.2 — 2021-04-15
- 0.1.1 — 2021-04-15
- 0.1.0 — 2021-04-14

## README

# node-ts-parser

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

## 安装

```bash
yarn add node-ts-parser
```

## 使用

### typescript

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

### js

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

---
_Source: https://npm.io/package/node-ts-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
