A parser that converts Angular source code into an ESTree-compatible form
# using npm
npm install --save angular-estree-parser @angular/compiler
# using yarn
yarn add angular-estree-parser @angular/compilerimport * as ngEstreeParser from 'angular-estree-parser';
const ast = ngEstreeParser.parseBinding('a | b:c');
//=> { type: "NGPipeExpression", ... }parseAction(input: string): ASTfor(target)="input"parseBinding(input: string): ASTfor[target]="input"parseInterpolationExpression(input: string): ASTfor{{input}}parseTemplateBindings(input: string): ASTfor*directive="input"
# lint
yarn run lint
# build
yarn run build
# test
yarn run testMIT © Ika