|
%!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.. | ||
lib | %!s(int64=2) %!d(string=hai) anos | |
node_modules | %!s(int64=2) %!d(string=hai) anos | |
CHANGELOG.md | %!s(int64=2) %!d(string=hai) anos | |
LICENSE | %!s(int64=2) %!d(string=hai) anos | |
README.md | %!s(int64=2) %!d(string=hai) anos | |
package.json | %!s(int64=2) %!d(string=hai) anos |
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/compiler
const ngEstreeParser = require('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"
parseInterpolation(input: string): AST
for {{input}}
parseTemplateBindings(input: string): AST
for *directive="input"
# lint
yarn run lint
# build
yarn run build
# test
yarn run test
MIT © Ika