Nomenclature Predictably Misunderstood

    angular-estree-parser
    TypeScript icon, indicating that this package has built-in type declarations

    6.0.0 • Public • Published

    angular-estree-parser

    npm build coverage

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

    Changelog

    Install

    # using npm
    npm install --save angular-estree-parser @angular/compiler
    
    # using yarn
    yarn add angular-estree-parser @angular/compiler

    Usage

    import * as ngEstreeParser from 'angular-estree-parser';
    
    const ast = 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

    # lint
    yarn run lint
    
    # build
    yarn run build
    
    # test
    yarn run test

    License

    MIT © Ika

    Keywords

    none

    Install

    npm i angular-estree-parser

    DownloadsWeekly Downloads

    40,149

    Version

    6.0.0

    License

    MIT

    Unpacked Size

    58.7 kB

    Total Files

    16

    Last publish

    Collaborators

    • thorn0
    • fisker
    • ikatyang