Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

regjsparser

Package Overview
Dependencies
1
Maintainers
1
Versions
32
Issues
File Explorer

Advanced tools

regjsparser

Parsing the JavaScript's RegExp in JavaScript.

    0.9.1latest

Version published
Maintainers
1
Weekly downloads
19,502,244
decreased by-5.13%

Weekly downloads

Changelog

Source

v0.9.1

Followup fix to "support modifiers proposal" PR (fix in #129 , original PR in #127 ).

Readme

Source

RegJSParser

Parsing the JavaScript's RegExp in JavaScript.

Installation

npm install regjsparser

Usage

var parse = require('regjsparser').parse; var parseTree = parse('^a'); // /^a/ console.log(parseTree); // Toggle on/off additional features: var parseTree = parse('^a', '', { // SEE: https://github.com/jviereck/regjsparser/pull/78 unicodePropertyEscape: true, // SEE: https://github.com/jviereck/regjsparser/pull/83 namedGroups: true, // SEE: https://github.com/jviereck/regjsparser/pull/89 lookbehind: true }); console.log(parseTree);

Testing

To run the tests, run the following command:

npm test

To create a new reference file, execute…

node test/update-fixtures.js

…from the repo top directory.

FAQs

What is regjsparser?

Parsing the JavaScript's RegExp in JavaScript.

Is regjsparser popular?

The npm package regjsparser receives a total of 18,584,324 weekly downloads. As such, regjsparser popularity was classified as popular.

Is regjsparser well maintained?

We found that regjsparser demonstrated a healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 09 Jul 2022
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc