# parse-ts-to-ast

> Parser for typescript files, that compiles those files and generates a human understandable AST.

Latest version **0.1.4** (published 2022-12-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install parse-ts-to-ast
pnpm add parse-ts-to-ast
yarn add parse-ts-to-ast
bun add parse-ts-to-ast
```

## 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.4 |
| Published | 2022-12-13 |
| First published | 2021-10-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 253 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ts-expector |
| Keywords | typescript, AST |

## Links

- npm: https://www.npmjs.com/package/parse-ts-to-ast
- npm.io page: https://npm.io/package/parse-ts-to-ast

## Dependencies (4)

- [tslib](https://npm.io/package/tslib.md) ^1.9.3
- [lodash](https://npm.io/package/lodash.md) ^4.17.10
- [lodash-es](https://npm.io/package/lodash-es.md) ^4.17.10
- [typescript](https://npm.io/package/typescript.md) ^3.0.3

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2022-12-13
- 0.1.3 — 2022-10-14
- 0.1.2 — 2021-10-11
- 0.1.1 — 2021-10-09
- 0.1.0 — 2021-10-09

## README

# typescript parser

This package is a TypeScript parser. It uses the underlying typescript parser to generate
a more or less human-readable AST out of .ts files.

## How to use

After you install the package via:
```
npm i parse-ts-to-ast
```

You can use the parser with:

```typescript
const parser = new TypescriptParser();

// either:
const parsed = await parser.parseSource(/* typescript source code as string */);

// or a filepath
const parsed = await parser.parseFile('/user/myfile.ts', 'workspace root');
```

## Licence

This software is licenced under the [MIT](LICENSE) licence.

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