GitHub - slevithan/oniguruma-to-es: Convert patterns from Oniguruma (the regex flavor used in Ruby, TextMate grammars, etc.) to native JavaScript RegExp
Briefly

The Oniguruma-To-ES library provides a novel way to translate Oniguruma regex patterns into JavaScript, allowing seamless integration of regexes across Ruby and JavaScript environments.
Operating with remarkable speed, Oniguruma-To-ES achieves regex emulation in JavaScript, boasting profound accuracy by closely mirroring Oniguruma’s behavior and syntax, even in edge cases.
As a lightweight alternative to WASM bindings, Oniguruma-To-ES is over 96% smaller and provides faster performance, showcasing its ability to handle various regex features efficiently.
Developers can adjust accuracy settings for emulated features, with an option to throw errors for patterns that can't be perfectly translated, enhancing code reliability.
Read at GitHub
[
|
]