Socket
Socket
Sign inDemoInstall

angular-estree-parser

Package Overview
Dependencies
5
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular-estree-parser

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


Version published
Weekly downloads
20K
decreased by-8.27%
Maintainers
3
Install size
42.8 kB
Created
Weekly downloads
 

Readme

Source

angular-estree-parser

Build Status Coverage Npm Version MIT License

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

FAQs

Last updated on 21 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc