regexp.prototype.flags
npmv1.5.4ES6 spec-compliant RegExp.prototype.flags shim.
Overview
regexp.prototype.flags is an npm package that eS6 spec-compliant RegExp.prototype.flags shim. The latest version is 1.5.4, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need eS6 spec-compliant RegExp.prototype.flags shim and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
Cons
- Large dependency tree (25 direct dependencies) increases install size and audit surface.
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of regexp.prototype.flags.
Dependencies
Runtime (6)
Dev (19)
Used by
Popular packages that depend on regexp.prototype.flags.
Alternatives to regexp.prototype.flags
ES2015-compliant shim for Object.is - differentiates between -0 and +0
Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
Tokenizes a string that represents a regular expression.
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Escape RegExp special characters
Matches strings against configurable strings, globs, regular expressions, and/or functions
Regular expression for matching a shebang line
Node.js path.parse() ponyfill
Compile regular expressions using named groups to ES5.
Express style path to RegExp utility
A small polyfill for Object.setprototypeof
An implementation of WHATWG AbortController interface.
Frequently installed together
The semantic version parser used by npm.
Store information about any JS value in a side channel. Uses WeakMap if available.
Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag
Get an iterator for any JS language value. Works robustly across all environments, all versions.
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Robustly `.call.bind()` a function
Array#isArray for older browsers
ES2015-compliant shim for Object.is - differentiates between -0 and +0
Is this an arguments object? It's a harder question than you think.
Is this value a JS SharedArrayBuffer?
An AST-based pattern checker for JavaScript.
Get and robustly cache all JS language-level intrinsics at first require time
Version history
| Version | Published | License |
|---|---|---|
| 1.5.4latest | 1 year ago | MIT |
| 1.5.3 | 1 year ago | MIT |
| 1.5.2 | 2 years ago | MIT |
| 1.5.1 | 2 years ago | MIT |
| 1.5.0 | 3 years ago | MIT |
| 1.4.3 | 4 years ago | MIT |
| 1.4.2 | 4 years ago | MIT |
| 1.4.1 | 4 years ago | MIT |
| 1.4.0 | 4 years ago | MIT |
| 1.3.2 | 4 years ago | MIT |
| 1.3.1 | 5 years ago | MIT |
| 1.3.0 | 6 years ago | MIT |
| 1.2.0 | 8 years ago | MIT |
| 1.1.1 | 11 years ago | MIT |
| 1.1.0 | 11 years ago | MIT |
| 1.0.1 | 11 years ago | MIT |
| 1.0.0 | 11 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install regexp.prototype.flags?
Run `npm install regexp.prototype.flags` to add regexp.prototype.flags to your npm project.
What license is regexp.prototype.flags released under?
regexp.prototype.flags is distributed under the MIT license.
How popular is regexp.prototype.flags?
regexp.prototype.flags has approximately 0 downloads per week and 1 known dependent packages.