cat-bookmarker/assets/node_modules/regjsparser
Nat 96939b7aee
Clean up repo and update deps
2024-03-10 11:52:04 -07:00
..
bin Clean up repo and update deps 2024-03-10 11:52:04 -07:00
node_modules Clean up repo and update deps 2024-03-10 11:52:04 -07:00
CHANGELOG Clean up repo and update deps 2024-03-10 11:52:04 -07:00
LICENSE.BSD Clean up repo and update deps 2024-03-10 11:52:04 -07:00
README.md Clean up repo and update deps 2024-03-10 11:52:04 -07:00
package.json Clean up repo and update deps 2024-03-10 11:52:04 -07:00
parser.js Clean up repo and update deps 2024-03-10 11:52:04 -07:00

README.md

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);

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.