safe-regex2
npmv5.1.1TypeScriptdetect possibly catastrophic, exponential-time regular expressions
Overview
safe-regex2 is an npm package that detect possibly catastrophic, exponential-time regular expressions. The latest version is 5.1.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need detect possibly catastrophic, exponential-time regular expressions and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of safe-regex2.
Dependencies
Runtime (1)
Dev (4)
Used by
Popular packages that depend on safe-regex2.
Alternatives to safe-regex2
Escape RegExp special characters
Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
Returns true if a string has an extglob.
Frequently installed together
Version history
| Version | Published | License |
|---|---|---|
| 5.1.1latest | 3 months ago | MIT |
| 5.1.0 | 4 months ago | MIT |
| 5.0.0 | 1 year ago | MIT |
| 4.0.1 | 1 year ago | MIT |
| 4.0.0 | 2 years ago | MIT |
| 3.1.0 | 3 years ago | MIT |
| 3.0.0 | 4 years ago | MIT |
| 2.0.0 | 7 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install safe-regex2?
Run `npm install safe-regex2` to add safe-regex2 to your npm project.
What license is safe-regex2 released under?
safe-regex2 is distributed under the MIT license.
How popular is safe-regex2?
safe-regex2 has approximately 0 downloads per week and 1 known dependent packages.