# angular-estree-parser

> A parser that converts Angular source code into an ESTree-compatible form

Latest version **15.5.0** (published 2026-06-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-estree-parser
pnpm add angular-estree-parser
yarn add angular-estree-parser
bun add angular-estree-parser
```

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 15.5.0 |
| Published | 2026-06-03 |
| First published | 2018-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >= 20 |
| Dependencies | 0 |
| Unpacked size | 38.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 18 |
| Author | Ika |
| Maintainers | thorn0, fisker, ikatyang |

## Links

- npm: https://www.npmjs.com/package/angular-estree-parser
- Repository: https://github.com/prettier/angular-estree-parser
- Homepage: https://github.com/prettier/angular-estree-parser#readme
- Issues: https://github.com/prettier/angular-estree-parser/issues
- npm.io page: https://npm.io/package/angular-estree-parser

## Recent versions

- 15.5.0 (latest) — 2026-06-03
- 15.4.3 — 2026-01-23
- 15.4.2 — 2026-01-23
- 15.4.1 — 2026-01-23
- 15.3.0 — 2026-01-14
- 15.2.0 — 2026-01-09
- 15.1.3 — 2026-01-08
- 15.1.2 — 2026-01-08
- 15.1.1 — 2026-01-08
- 15.1.0 — 2026-01-08
- 15.0.0 — 2026-01-08
- 14.2.1 — 2025-12-18
- 14.2.0 — 2025-12-16
- 14.1.0 — 2025-11-21
- 14.0.2 — 2025-11-21
- … 64 more at https://npm.io/package/angular-estree-parser/versions

## README

# angular-estree-parser

[![Build Status][github_actions_badge]][github_actions_link]
[![Coverage][coverage_badge]][coverage_link]
[![Npm Version][package_version_badge]][package_link]
[![MIT License][license_badge]][license_link]

[github_actions_badge]: https://img.shields.io/github/actions/workflow/status/prettier/angular-estree-parser/ci.yml
[github_actions_link]: https://github.com/prettier/angular-estree-parser/actions?query=workflow%3ACI+branch%3Amain
[coverage_badge]: https://img.shields.io/codecov/c/github/prettier/angular-estree-parser/main.svg
[coverage_link]: https://codecov.io/gh/prettier/angular-estree-parser
[license_badge]: https://img.shields.io/npm/l/angular-estree-parser.svg
[license_link]: https://github.com/prettier/angular-estree-parser/blob/main/LICENSE
[package_version_badge]: https://img.shields.io/npm/v/angular-estree-parser.svg
[package_link]: https://www.npmjs.com/package/angular-estree-parser

A parser that converts Angular source code into an ESTree-compatible form

[Changelog](https://github.com/prettier/angular-estree-parser/blob/main/CHANGELOG.md)

## Install

```sh
# using npm
npm install --save angular-estree-parser @angular/compiler

# using yarn
yarn add angular-estree-parser @angular/compiler
```

## Usage

```js
import * as ngEstreeParser from 'angular-estree-parser';

const ast = ngEstreeParser.parseBinding('a | b:c');
//=> { type: "NGPipeExpression", ... }
```

## API

- `parseAction(input: string): AST` for `(target)="input"`
- `parseBinding(input: string): AST` for `[target]="input"`
- `parseInterpolationExpression(input: string): AST` for `{{input}}`
- `parseTemplateBindings(input: string): AST` for `*directive="input"`

## Development

```sh
# lint
yarn run lint

# build
yarn run build

# test
yarn run test
```

## License

MIT © [Ika](https://github.com/ikatyang)

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