Socket
Socket
Sign inDemoInstall

@lezer/javascript

Package Overview
Dependencies
3
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @lezer/javascript

lezer-based JavaScript grammar


Version published
Weekly downloads
523K
decreased by-1.3%
Maintainers
1
Install size
797 kB
Created
Weekly downloads
 

Changelog

Source

1.4.16 (2024-05-04)

Bug fixes

Don't consume ?. tokens when followed by a digit.

Support type arguments on non-call expressions.

Readme

Source

@lezer/javascript

This is a JavaScript grammar for the lezer parser system.

It parses ES2020, and supports a "ts" dialect to parse TypeScript, and a "jsx" dialect to parse JSX.

The top option can be set to "SingleExpression" or "SingleClassItem" to parse an expression or class item instead of a full program.

The code is licensed under an MIT license.

FAQs

Last updated on 04 May 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