Skip to content

prettier/angular-estree-parser

Repository files navigation

Image for: Repository files navigation

angular-estree-parser

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

Changelog

Install

Image for: Install
# using npm
npm install --save angular-estree-parser @angular/compiler

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

Usage

Image for: Usage
import * as ngEstreeParser from 'angular-estree-parser';

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

API

Image for: 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

Image for: Development
# lint
yarn run lint

# build
yarn run build

# test
yarn run test

License

Image for: License

MIT © Ika

About

Image for: About

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

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

Image for: Packages 0
No packages published

Contributors 7

Image for: Contributors 7