0.8.0 • Published 2 years ago

regjsgen v0.8.0

Weekly downloads
15,046,485
License
MIT
Repository
github
Last release
2 years ago

regjsgen Build status Code coverage status

Generate regular expressions from regjsparser’s AST.

Installation

npm i regjsgen

API

regjsgen.generate(ast)

This function accepts an abstract syntax tree representing a regular expression (see regjsparser), and returns the generated regular expression string.

const regjsparser = require('regjsparser');
const regjsgen = require('regjsgen');

// Generate an AST with `regjsparser`.
let ast = regjsparser.parse(regex);

// Modify AST
// …

// Generate `RegExp` string with `regjsgen`.
let regex = regjsgen.generate(ast);

Support

Tested on Node.js 16 and 18. Compatible with regjsparser v0.10.0’s AST.

regexpu-core@dinert/utilsvuedragdropuploadimagesreact-native-bluetooth2killi8n-react-native-fast-imagern-send-sms@arisageha/react-lazyload@arisageha/react-lazyload-fix@cashremit/cr-streamline-iconsreact-native-template-rfbasecloud-archive-s3airscanairscan-examplebb-chatreact-native-esc-pos-sahaab@ihikmawan/tailwindcss-multi-theme-l2@borisovart/atol-kkt-module@phil8795/pecuniarius-apideneme323112@texttree/demo-bsa-reference-rcl@ntt_app/react-native-custom-notificationreact-native-custom-text-hwjamesreact-native-covid-sdkgql_din_modreact-native-thanh-toast-library@thanhnguyen14797/react-native-thanh-toast-library@l1nyanm1ng/react-picture-viewer@saeon/quick-formcthpb-plugin-social@olivervorasai/sliderreact-native-printer-brothersrn-pdf-reader-offlinecbmis-ai-toolboxreact-native-shekhar-bridge-testasterjscogoportutilsuinz-notificationwilscanner@oiti/documentoscopy-react-native@mink-opn/build-tokensquoc-testreact-native-slider-kf@infinitebrahmanuniverse/nolb-regjexpand-react-bridge@everything-registry/sub-chunk-2644taman-baca-masyarakattest-carosello-campustest-haptik-libteadanteavue-button-test1webchewebpack_component_fundwescheme-jswoven-challenge-deploywow.js-juziwifi_configuration_packagesuperset-plugin-chart-hello-world2techfox-icontechfox-react-feathersticky-scroll-catchtestapateste_cegidtestnpm_lmnsvavatarsvelte-component-libtextfield-samplevue-compmentvision-camera-plugin-scan-facesvision-camera-base64-resizedvcloudcam-playkit-js-hlsvantiq-reactvue-dev-clone@cryptocode99/token-lists@ct-note/table@ct-note/warning@ct-note/image@ct-note/inline-code@ct-note/list@ct-note/marker@ct-note/paragraph@ct-note/quote@ct-note/simple-image@ct-note/checklist@ct-note/code@ct-note/delimiter@ct-note/embed@ct-note/header@con-test/react-native-concent-common@damian.lnc/core@damruravihara/react-native-testing-package@cube-design/react@corelmax/react-native-my2c2p-sdk@dinert/component@dinert/tools@borealisswap/borealis-swap-lib@blkmarketco/components-library@caneco/siema@praella/localisationist@percent/percent-api-hooks@poscredit/plugin-chart-boris
0.8.0

2 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.0

4 years ago

0.5.2

5 years ago

0.5.1

6 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

9 years ago

0.2.0

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago