regexpu-core is the core module of regexpu, a transpiler that converts ES2015 Unicode regular expressions (with the `u` and `v` flags) into ES5-compatible patterns. Current stable version is 6.4.0. It supports features like Unicode property escapes, dotAll flag, named capture groups, and the `v` flag (unicodeSetsFlag), with options to either pass through or transform them. Released on npm with TypeScript types, it has a steady release cadence, updated for Unicode 15.1. Key differentiator: focused on core regexp rewriting without the full regexpu CLI, used by Babel and other tools.
npm install regexpu-coreNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of rewritePattern to transpile a Unicode property escape regex into ES5-compatible pattern.
Remove any setting that disables 'v' flag; pattern is always parsed with 'v' flag support.
Replace 'useUnicodeFlag' with 'unicodeFlag' option.
Use `const rewritePattern = require('regexpu-core');` not `require('...').rewritePattern`.Set `unicodeFlag: 'transform'` explicitly to get ES5-compatible output.
Pass `namedGroups: 'transform'` option to compile named groups.
Use `const rewritePattern = require('regexpu-core');`Do not import from internal paths; use only 'regexpu-core'.
Use `import type { RewritePatternOptions } from 'regexpu-core';`No dependency data recorded yet.