Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-estree-parser

Package Overview
Dependencies
Maintainers
0
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 10.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
25K
increased by51.7%
Maintainers
0
Weekly downloads
 
Created
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

Package last updated on 29 Sep 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc