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-2644@314oner_npm/universal-components-librarygrid-component-react-ex-1google-remakekhaled-salem-custom-componentskafirchain-tetrislitepie-datepicker-gabelargest-numberm2m-chartjs-plugin-crosshairmama-exportergzup-react-image-file-resizergrids-over-polygonhexyun.helpershelp-widgethello_world_founderhot-zone-vueicons-vue-testjesusdemomavectramd-vditormdlinks-palvaradomobtimer-api2mncssmggauharmicroend-componentmiguelcostero-ng2-toastymj4d-excalidraw-originalmini-vue-validatenative-apple-loginnewdemo1nka-gantt-task-reactnative-google-loginnative-date-picker-modulenative-kakao-loginmy-package-mtldeshmukhng-search-dropdownmoonwalkerswap-default-token-listsnove-repositorynois-react-toast@refactorpro/pixi-virtual-joystick@retailica/sweetalert2@resystem/ida-js-sdk@seamlessc/tabler-icons-react@upacyxou/react-native-draggable-flatlist@picaro/colorhelper@phong95/react-native-multiple-image-picker@poondestroyer/sig@poscredit/plugin-chart-boris@praella/localisationist@posturize/react-resizable-rotatable-draggable@thinkincoin-libs/token-lists@thismr/bitmindtest-core@trackier/react-native-trackier@torswap/tor-token-lists@udooku/react-image-comparison-slider@summonlabs/use-ada-handle-resolver
0.8.0

1 year ago

0.7.1

2 years ago

0.7.0

2 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

6 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