{"library":"lodash._reescape","title":"Lodash Internal ReEscape Utility (v3)","description":"lodash._reescape is an abandoned npm package that exports an internal `reEscape` utility function from Lodash v3.0.0. Published over a decade ago (February 2015) and never updated, it is a snapshot of an internal helper used by the main Lodash library at that time. While the core Lodash library (currently v4.18.1) remains actively developed with a regular release cadence, this specific modular build is no longer maintained as a standalone package. Its purpose was to escape regular expression special characters in strings, a functionality now integrated directly into modern `lodash` builds, typically via `_.escapeRegExp`. This package should be considered deprecated and potentially insecure due to its age and lack of updates, especially given known vulnerabilities in Lodash v3.","language":"javascript","status":"abandoned","last_verified":"Sun Apr 19","install":{"commands":["npm install lodash._reescape"],"cli":null},"imports":["const reEscape = require('lodash._reescape');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const reEscape = require('lodash._reescape');\n\n// This internal utility is designed to escape characters\n// that have special meaning in regular expressions.\nconst regexString = 'user.name?id=123&query=test';\nconst escapedRegex = reEscape(regexString);\n\nconsole.log(`Original: ${regexString}`);\nconsole.log(`Escaped for RegExp: ${escapedRegex}`);\n\n// Example of how it might be used in a regular expression constructor\nconst searchPattern = new RegExp(escapedRegex, 'i');\nconst testString = 'The user.name?id=123&query=test was found.';\n\nconsole.log(`Matches: ${searchPattern.test(testString)}`);\n\n// For modern Lodash users, prefer _.escapeRegExp from the main library\n// const _ = require('lodash');\n// console.log(`Modern Lodash equivalent: ${_.escapeRegExp(regexString)}`);","lang":"javascript","description":"Demonstrates the use of the `reEscape` function to escape a string for safe inclusion in a regular expression pattern, reflecting its original utility.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}