{"library":"safe-regex-test","type":"library","category":null,"description":"safe-regex-test is a JavaScript utility designed to provide a robust and predictable method for testing regular expressions against strings. It addresses a specific security concern by safeguarding the regex testing mechanism from potential alterations or pollution of the global `RegExp.prototype` object, which can lead to unexpected behavior or vulnerabilities in less controlled environments. The current stable version is 1.1.0, last published over a year ago, indicating a mature project with a slow and deliberate release cadence, primarily focused on stability and specific bug fixes rather than frequent feature additions. Its key differentiator is this resilience against prototype tampering, offering a more secure alternative to direct `RegExp.prototype.test` usage, particularly in shared or potentially untrusted execution contexts.","language":"javascript","status":"active","version":"1.1.0","tags":["javascript","regex","regexp","test","tester","safe","robust","exec","typescript"],"install":[{"cmd":"npm install safe-regex-test","imports":["import safeRegexTest from 'safe-regex-test';","const safeRegexTest = require('safe-regex-test');","import type { SafeRegexTester } from 'safe-regex-test';"]},{"cmd":"yarn add safe-regex-test","imports":[]},{"cmd":"pnpm add safe-regex-test","imports":[]}],"homepage":null,"github":"https://github.com/ljharb/safe-regex-test","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/safe-regex-test","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/safe-regex-test/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}