angular-estree-parser
A parser that converts Angular source code into an ESTree-compatible form
Changelog
Install
npm install --save angular-estree-parser @angular/compiler
yarn add angular-estree-parser @angular/compiler
Usage
import * as ngEstreeParser from 'angular-estree-parser';
const ast = ngEstreeParser.parseBinding('a | b:c');
API
parseAction(input: string): AST
for (target)="input"
parseBinding(input: string): AST
for [target]="input"
parseInterpolation(input: string): AST
for {{input}}
parseTemplateBindings(input: string): AST
for *directive="input"
Development
yarn run lint
yarn run build
yarn run test
License
MIT © Ika