package
A parser that converts Angular source code into an ESTree-compatible form
npm install angular-estree-parserGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 1 packages.
38.3 kB
Includes dependencies.
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): AST for (target)="input"parseBinding(input: string): AST for [target]="input"parseInterpolationExpression(input: string): AST for {{input}}parseTemplateBindings(input: string): AST for *directive="input"# lint
yarn run lint
# build
yarn run build
# test
yarn run testMIT © Ika
fisker
lionkay@gmail.com