angular-estree-parser

Image for: angular-estree-parser
12.1.0 • Public • Published

angular-estree-parser

A parser that converts Angular source code into an ESTree-compatible form

Changelog

Install

Image for: Install
# using npm
npm install --save angular-estree-parser @angular/compiler

# using yarn
yarn add angular-estree-parser @angular/compiler

Usage

Image for: Usage
import * as ngEstreeParser from 'angular-estree-parser';

const ast = ngEstreeParser.parseBinding('a | b:c');
//=> { type: "NGPipeExpression", ... }

API

Image for: API
  • 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"

Development

Image for: Development
# lint
yarn run lint

# build
yarn run build

# test
yarn run test

License

Image for: License

MIT © Ika

Readme

Image for: Readme

Keywords

none

Package Sidebar

Image for: Package Sidebar

Install

npm i angular-estree-parser

Weekly Downloads

51,858

Version

12.1.0

License

MIT

Unpacked Size

47.3 kB

Total Files

23

Last publish

Collaborators