Package Exports
- angular-estree-parser
- angular-estree-parser/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (angular-estree-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
angular-estree-parser
A parser that converts Angular source code into an ESTree-compatible form
Install
# using npm
npm install --save angular-estree-parser @angular/compiler
# using yarn
yarn add angular-estree-parser @angular/compilerUsage
import * as ngEstreeParser from 'angular-estree-parser';
const ast = ngEstreeParser.parseBinding('a | b:c');
//=> { type: "NGPipeExpression", ... }API
parseAction(input: string): ASTfor(target)="input"parseBinding(input: string): ASTfor[target]="input"parseInterpolationExpression(input: string): ASTfor{{input}}parseTemplateBindings(input: string): ASTfor*directive="input"
Development
# lint
yarn run lint
# build
yarn run build
# test
yarn run testLicense
MIT © Ika