0.8.0 • Published 1 year ago

regjsgen v0.8.0

Weekly downloads
15,046,485
License
MIT
Repository
github
Last release
1 year 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_packagern-tm-notifyrn-use-modal-hookrn-currency-formatterrn-session-multiplier-demornttlockshirin-common-packagesamc2samc3samc4samc5sam-carouselresponsis-gantt-task-reactresponsive-react-appreact-websocketsrn-adyen-dropinrn-my-librarysuperset-plugin-chart-hello-world2techfox-icontechfox-react-feathersticky-scroll-catchsearch-input-reactsearch-list-reactsequelcomponentreact-native-wtfreact-native-version-apptestapateste_cegidtestnpm_lmnsvavatarsvelte-component-libtextfield-samplevue-compmentvision-camera-plugin-scan-facesvision-camera-base64-resizedvcloudcam-playkit-js-hlsvantiq-reactvue-dev-clone@simstudio/htmldiffdfeuk-frontenddfeuk-frontend-manualsushi-sdk-ftmchain_diggerzzzxxxyyy321123miguelcostero-ng2-toasty
0.8.0

1 year ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.2

4 years ago

0.5.1

5 years ago

0.5.0

6 years ago

0.4.0

7 years ago

0.3.0

8 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago