16a1a26da287b38706d80d702e09597b46ff6911a29f5db0840e33f9c7df307e767813c227c0bf6017f3b25662995abb0646f5fd23a3a6c97caf7a717bb922 440 B

12345678910111213141516171819202122232425262728293031323334
  1. # RegJSParser
  2. Parsing the JavaScript's RegExp in JavaScript.
  3. ## Installation
  4. ```bash
  5. npm install regjsparser
  6. ```
  7. ## Usage
  8. ```js
  9. var parse = require('regjsparser').parse;
  10. var parseTree = parse('^a'); // /^a/
  11. console.log(parseTree);
  12. ```
  13. ## Testing
  14. To run the tests, run the following command:
  15. ```bash
  16. npm test
  17. ```
  18. To create a new reference file, execute…
  19. ```bash
  20. node test/update-fixtures.js
  21. ```
  22. …from the repo top directory.