Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

prettier/angular-estree-parser

Repository files navigation

Build StatusCoverageNpm VersionMIT License

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

Changelog

Install

# using npmnpm install --save angular-estree-parser @angular/compiler# using yarnyarn add angular-estree-parser @angular/compiler

Usage

import*asngEstreeParserfrom'angular-estree-parser';constast=ngEstreeParser.parseBinding('a | b:c');//=> { type: "NGPipeExpression", ... }

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

# lintyarn run lint# buildyarn run build# testyarn runtest

License

MIT ©Ika

About

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

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors8


[8]ページ先頭

©2009-2025 Movatter.jp