{
  "_id": "safe-regex2",
  "maintainers": [
    {
      "name": "zekth",
      "email": "vince.legoff@gmail.com"
    },
    {
      "name": "eomm",
      "email": "behemoth89@gmail.com"
    },
    {
      "name": "gurgunday",
      "email": "hey@gurgun.day"
    },
    {
      "name": "ivan-tymoshenko",
      "email": "ivan@tymoshenko.me"
    },
    {
      "name": "simoneb",
      "email": "simone.busoli@gmail.com"
    },
    {
      "name": "climba03003",
      "email": "kaka@kakawebsitedemo.com"
    },
    {
      "name": "jsumners",
      "email": "james.sumners@gmail.com"
    },
    {
      "name": "fdawgs",
      "email": "frazer.dev@icloud.com"
    },
    {
      "name": "metcoder95",
      "email": "me@metcoder.dev"
    },
    {
      "name": "matteo.collina",
      "email": "hello@matteocollina.com"
    }
  ],
  "keywords": [
    "catastrophic",
    "exponential",
    "regex",
    "safe",
    "sandbox"
  ],
  "dist-tags": {
    "latest": "5.1.1"
  },
  "author": {
    "name": "James Halliday",
    "email": "mail@substack.net",
    "url": "http://substack.net"
  },
  "_rev": "13-89c8e5e3897341a6fc6d22ed951f4224",
  "description": "detect possibly catastrophic, exponential-time regular expressions",
  "readme": "# safe-regex2\n\n[![CI](https://github.com/fastify/safe-regex2/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/fastify/safe-regex2/actions/workflows/ci.yml)\n[![NPM version](https://img.shields.io/npm/v/safe-regex2.svg?style=flat)](https://www.npmjs.com/package/safe-regex2)\n[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat)](https://github.com/neostandard/neostandard)\n\nDetect potentially [catastrophic](http://regular-expressions.mobi/catastrophic.html) [exponential-time](http://perlgeek.de/blog-en/perl-tips/in-search-of-an-exponetial-regexp.html)\nregular expressions by limiting the [star height](https://en.wikipedia.org/wiki/Star_height) to 1.\n\nThis is a fork of https://github.com/substack/safe-regex at 1.1.0.\n\nWARNING: This module has both false positives and false negatives.\nIt is not meant as a full checker, but it detects basic cases.\n\n## Install\n```sh\nnpm i safe-regex2\n```\n\n## Usage via npx\n\nYou can use this module via `npx` without installing it globally:\n\nExample:\n```sh\nnpx safe-regex2 '(x+x+)+y'\n```\n\n## Example\n\n``` js\nconst safe = require('safe-regex2');\nconst regex = process.argv.slice(2).join(' ');\nconsole.log(safe(regex));\n```\n\n```\n$ node safe.js '(x+x+)+y'\nfalse\n$ node safe.js '(beep|boop)*'\ntrue\n$ node safe.js '(a+){10}'\nfalse\n$ node safe.js '\\blocation\\s*:[^:\\n]+\\b(Oakland|San Francisco)\\b'\ntrue\n```\n\n## Methods\n\n``` js\nconst safe = require('safe-regex')\n```\n\n### const ok = safe(re, opts={})\n\nReturns a boolean indicating whether the regex `re` is safe\nand not possibly catastrophic.\n\n`re` can be a `RegExp` object or just a string.\n\nIf `re` is a string and is an invalid regex, it returns `false`.\n\n* `opts.limit` - maximum number of allowed repetitions in the entire regex.\nDefault: `25`.\n\n## License\n\nLicensed under [MIT](./LICENSE).\n",
  "repository": {
    "type": "git",
    "url": "git://github.com/fastify/safe-regex2.git"
  },
  "bugs": {
    "url": "https://github.com/fastify/safe-regex2/issues"
  },
  "license": "MIT",
  "versions": {
    "2.0.0": {
      "name": "safe-regex2",
      "version": "2.0.0",
      "keywords": [
        "catastrophic",
        "exponential",
        "regex",
        "safe",
        "sandbox"
      ],
      "author": {
        "url": "http://substack.net",
        "name": "James Halliday",
        "email": "mail@substack.net"
      },
      "license": "MIT",
      "_id": "safe-regex2@2.0.0",
      "maintainers": [
        {
          "name": "matteo.collina",
          "email": "hello@matteocollina.com"
        }
      ],
      "contributors": [
        {
          "name": "Matteo Collina",
          "email": "hello@matteocollina.com"
        }
      ],
      "homepage": "https://github.com/fastify/safe-regex",
      "bugs": {
        "url": "https://github.com/fastify/safe-regex/issues"
      },
      "dist": {
        "shasum": "b287524c397c7a2994470367e0185e1916b1f5b9",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/safe-regex2/-/safe-regex2-2.0.0.tgz",
        "fileCount": 7,
        "integrity": "sha512-PaUSFsUaNNuKwkBijoAPHAK6/eM6VirvyPWlZ7BAQy4D+hCvh4B6lIG+nPdhbFfIbP+gTGBcrdsOaUs0F+ZBOQ==",
        "signatures": [
          {
            "sig": "MEUCIDXXYxN4ltsoXg+zvNedBUrZX1pE66HaAkmjDlJ1NN4SAiEAnYs7WWwAkoG6jwsVqiSpUrwmmbGhmrupk7a2J3o6KbU=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 5388,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcakVUCRA9TVsSAnZWagAA6NMP+wZOiGTaV3JrxZ/ao+fA\n06rLysYy9JbifFF9/4xqRIcKU9kxykAlaqkYDNMdU/zkBAbezcRkAPglHAm0\ntTYDmVipp8AOnJWbezWJM7Kl26AIgE5UVyeH9XcB4/0W3uwNf17F5m5jy4mL\nFhsbG75sACdmRAZR+nP0RRLq2oT54QicUdBT3OR8QWx2hlPldYbbdq/6veUM\n7geBkcODQ0lspjOiuxQmQcZqvuwxgVvubYGWLdeaBRogYlV78JQSom6hdoCc\n2lNri78qaOZh+KYbKMOtdpNaSffr95XGUR4ueRMQayBS40Sj1gHjVb0B3Z+i\nPZ7fDpHJI0HVXHbYwVjiy5imepey6jJ9IRpsxGM7mWAqYPwJbmxVBXHxJpxg\nR+I2IndDBBwqphsoZTxNzza7V7eb2rtC/AMeYbNQmoNg037S6dygr1cf3GyG\nxnKzV2r9X9hxqIUoZpVCcdJR+14lGIUUKEHxsDY+SwA2hMjnkC3nNq0SyfJF\ny4r82qW5egaxg1DOd1Oxl73OH322MjmfRuQjHxGPJ1N28uJeFHkAqGoI21mN\nwtgw0g4dA/wi288KNiobBNoWry2lSCPPK2nOytskxB01Lb6B1bE7To+Y8Rj7\nB/nIM3bJLhTSBYs+NLEDxt3zclWCWTLMDF5gpcpOycPZC0I2GlWpMQSJ88tr\nOkBu\r\n=Sk2m\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "main": "index.js",
      "gitHead": "6af6b35b1609474d928a5e9a8af4f95ab6771628",
      "scripts": {
        "test": "standard && tape test/*.js"
      },
      "_npmUser": {
        "name": "matteo.collina",
        "email": "hello@matteocollina.com"
      },
      "repository": {
        "url": "git://github.com/fastify/safe-regex.git",
        "type": "git"
      },
      "_npmVersion": "6.7.0",
      "description": "detect possibly catastrophic, exponential-time regular expressions",
      "directories": {},
      "_nodeVersion": "10.15.1",
      "dependencies": {
        "ret": "~0.2.0"
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "tape": "^4.0.0",
        "standard": "^12.0.1"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/safe-regex2_2.0.0_1550468435646_0.20697473603543237",
        "host": "s3://npm-registry-packages"
      }
    },
    "3.0.0": {
      "name": "safe-regex2",
      "version": "3.0.0",
      "keywords": [
        "catastrophic",
        "exponential",
        "regex",
        "safe",
        "sandbox"
      ],
      "author": {
        "url": "http://substack.net",
        "name": "James Halliday",
        "email": "mail@substack.net"
      },
      "license": "MIT",
      "_id": "safe-regex2@3.0.0",
      "maintainers": [
        {
          "name": "matteo.collina",
          "email": "hello@matteocollina.com"
        }
      ],
      "contributors": [
        {
          "name": "Matteo Collina",
          "email": "hello@matteocollina.com"
        }
      ],
      "homepage": "https://github.com/fastify/safe-regex",
      "bugs": {
        "url": "https://github.com/fastify/safe-regex/issues"
      },
      "dist": {
        "shasum": "822e04bed41d564024be55c3338eeb38c9d27aa5",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/safe-regex2/-/safe-regex2-3.0.0.tgz",
        "fileCount": 9,
        "integrity": "sha512-vPp34BbeSYdHPcRAhre+XA0qX2+zDCiaXExoANPVu4yNZGD0QS+/TsmTeHKdPJCSPS6Ap3Hrb6T6f5wlvpvJzw==",
        "signatures": [
          {
            "sig": "MEUCIQDTgTbE8J6i6JMZqWELnoKGHJMlfASQsmTzw/chWKwdEAIgdaJFD+S17aHzRdwMMXUyH79n1nF6emhMvSr+ytlysoo=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 6500,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijgU2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqS9A/+MOkD0sAMY+Fy9LXYYBvpsPdPiozoiwWIbz9vIaEY2zMtpDfr\r\n3rfxXVtaKbwdUqK8owZkz+hFjnKl0BWmYIEKUHFjlTDyzFKi7naLnQwpJ5Wg\r\nb0Zz6iANLn9pchYSPwKZjlOWUJm07EBXO6ohZ/E4YfFVilVGuYZ1CVpCykWT\r\nutAlCiYzQ/vLVmXa9p3G5baYZKKlvlwSSPoLpbBcAM2Qnh18ZiYhImyeKVqg\r\n296yWtJ1h0Au+e5hExQdAfedD666B4RJZem7RwcTbTLwyR0LuA0cy+QJXIzA\r\n883aLCXLnrCwqlwDmPhiAvO/895SmnbjnUfxrC5s1L+goI3V9BFBNhJn8vhH\r\nureJ7vU9Fpp/CI0VJcvlSLJY0HAVoF4561dbRyXdqvd9w2tYyUgsag8X2pOm\r\nugKdLz6dhUhkEXhTqWxNwVLGgGozld2ASQkRmcDg4NRSiOSzHb69mtwIkzNY\r\nnyPTr9N5inAmdAsSs/FXvR8JeKrhrKmbA2jExHg6atIOc6lMOngjfCNPghP5\r\n6Sqh/bIhgcVeEqueeOeWQyXJWzfZu+bPxpj9wyd2+49pm5PHNcmdDGeTtT+f\r\n2/Xzf5VXMPUxjF6zY9rKkhIvTeQXmsoi2St3tGR+obfzJ0rBTlsPQc5I6bIg\r\njJbkx5MRAocONdqrsylC0TWULT4R4DQIT/o=\r\n=Regr\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "main": "index.js",
      "gitHead": "77f3de04dc2744a50f53a315772dbd60d63b9799",
      "scripts": {
        "test": "standard && tape test/*.js"
      },
      "_npmUser": {
        "name": "matteo.collina",
        "email": "hello@matteocollina.com"
      },
      "repository": {
        "url": "git://github.com/fastify/safe-regex.git",
        "type": "git"
      },
      "_npmVersion": "8.5.5",
      "description": "detect possibly catastrophic, exponential-time regular expressions",
      "directories": {},
      "_nodeVersion": "16.15.0",
      "dependencies": {
        "ret": "~0.4.0"
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "tape": "^5.0.0",
        "standard": "^17.0.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/safe-regex2_3.0.0_1653474613933_0.325470533541957",
        "host": "s3://npm-registry-packages"
      }
    },
    "3.1.0": {
      "name": "safe-regex2",
      "version": "3.1.0",
      "keywords": [
        "catastrophic",
        "exponential",
        "regex",
        "safe",
        "sandbox"
      ],
      "author": {
        "url": "http://substack.net",
        "name": "James Halliday",
        "email": "mail@substack.net"
      },
      "license": "MIT",
      "_id": "safe-regex2@3.1.0",
      "maintainers": [
        {
          "name": "matteo.collina",
          "email": "hello@matteocollina.com"
        }
      ],
      "contributors": [
        {
          "name": "Matteo Collina",
          "email": "hello@matteocollina.com"
        }
      ],
      "homepage": "https://github.com/fastify/safe-regex",
      "bugs": {
        "url": "https://github.com/fastify/safe-regex/issues"
      },
      "dist": {
        "shasum": "fd7ec23908e2c730e1ce7359a5b72883a87d2763",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/safe-regex2/-/safe-regex2-3.1.0.tgz",
        "fileCount": 11,
        "integrity": "sha512-RAAZAGbap2kBfbVhvmnTFv73NWLMvDGOITFYTZBAaY8eR+Ir4ef7Up/e7amo+y1+AH+3PtLkrt9mvcTsG9LXug==",
        "signatures": [
          {
            "sig": "MEUCIQD+baeb+20LZ3sxArsUKWg9ul99Uo7Kb9jUPK01zTw82gIgJO4/pLRehTjNxXCp9FA9QG+AZBCjnWkRSe/8H0Q4+PY=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 7566,
        "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjTQiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp9CBAAgYjeNFlzZLd9IVfq64ktk/u3idTlXohC135menNK20gqTTtF\r\nx+2YteDYbfH0XjQMqHQ8bh0EKs+0MOnVx20cTTQURpbdk2wV9EEu4RjireCg\r\nvYlfA0YXZS4xePJqN/bD3Qc8p0EnkE46FuZ8nt/yVmkJoszAUBFzocltpdgJ\r\n/N1jYFFbw0lkPNm/g2HplDkZj6TGekMIFUj829f/Pt4y8apKIcYCU6oNIbKW\r\nVUyOHg79UKAdT9xS6iUy39LkKiYZFifObHGC42O3g+0JlqPwkRngJDl+Vzx3\r\npIqWrsciyijD6eU0PX1IuaM+CpB1+r2+YxxK/5ZpAsZBfI2cci6cqQJA2D+X\r\nlLXmMY11iffjmX69jlmUXONXIAwIud9IwRv4EQG1E9fGMcs9Shpg4W080F+B\r\nsE/2Hl4U8TAzmDAafUpkRtstQVQV54SmVpVtMhr3uuupW/eWIFwBjdOaW4p1\r\n4P5WNwuiiqgwzowiiWJ9GAAeTB8AkTjSFLSrB4IBMywXHE/RmcYwXc1YwQKc\r\n+96KhMnEpSAHlSRAbWT+PsSQPmlROYjOWxcNUgdMs6vAKZsuTjMafvtHp0A6\r\nG106KCQLsuEL1XmLnDNnKbSNA5I6x2uCzLw0jLMLXSmde8VbSMxKbdbFBGAa\r\nOdlaB9Oe1mxfz02BjbwZk0DVMbQES+xfeXk=\r\n=kYiB\r\n-----END PGP SIGNATURE-----\r\n"
      },
      "main": "index.js",
      "types": "types/index.d.ts",
      "gitHead": "e9861278253e00f4b9868ef403d6852d0ac53307",
      "scripts": {
        "lint": "standard",
        "test": "npm run test:unit",
        "test:unit": "tape test/*.js",
        "test:typescript": "tsd"
      },
      "_npmUser": {
        "name": "matteo.collina",
        "email": "hello@matteocollina.com"
      },
      "repository": {
        "url": "git://github.com/fastify/safe-regex.git",
        "type": "git"
      },
      "_npmVersion": "9.1.2",
      "description": "detect possibly catastrophic, exponential-time regular expressions",
      "directories": {},
      "_nodeVersion": "16.17.0",
      "dependencies": {
        "ret": "~0.4.0"
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "tsd": "^0.25.0",
        "tape": "^5.0.0",
        "standard": "^17.0.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/safe-regex2_3.1.0_1670198306219_0.2729882832525603",
        "host": "s3://npm-registry-packages"
      }
    },
    "4.0.0": {
      "name": "safe-regex2",
      "version": "4.0.0",
      "keywords": [
        "catastrophic",
        "exponential",
        "regex",
        "safe",
        "sandbox"
      ],
      "author": {
        "url": "http://substack.net",
        "name": "James Halliday",
        "email": "mail@substack.net"
      },
      "license": "MIT",
      "_id": "safe-regex2@4.0.0",
      "maintainers": [
        {
          "name": "jsumners",
          "email": "james.sumners@gmail.com"
        },
        {
          "name": "climba03003",
          "email": "kaka@kakawebsitedemo.com"
        },
        {
          "name": "gurgunday",
          "email": "hey@gurgun.day"
        },
        {
          "name": "simoneb",
          "email": "simone.busoli@gmail.com"
        },
        {
          "name": "ivan-tymoshenko",
          "email": "ivan@tymoshenko.me"
        },
        {
          "name": "eomm",
          "email": "behemoth89@gmail.com"
        },
        {
          "name": "zekth",
          "email": "vince.legoff@gmail.com"
        },
        {
          "name": "rafaelgss",
          "email": "rafael.nunu@hotmail.com"
        },
        {
          "name": "matteo.collina",
          "email": "hello@matteocollina.com"
        }
      ],
      "contributors": [
        {
          "name": "Matteo Collina",
          "email": "hello@matteocollina.com"
        }
      ],
      "homepage": "https://github.com/fastify/safe-regex",
      "bugs": {
        "url": "https://github.com/fastify/safe-regex/issues"
      },
      "dist": {
        "shasum": "5e04d8362cd4884753c8bce9715d4759a5239c0a",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/safe-regex2/-/safe-regex2-4.0.0.tgz",
        "fileCount": 12,
        "integrity": "sha512-Hvjfv25jPDVr3U+4LDzBuZPPOymELG3PYcSk5hcevooo1yxxamQL/bHs/GrEPGmMoMEwRrHVGiCA1pXi97B8Ew==",
        "signatures": [
          {
            "sig": "MEUCIETHOWpmb3B5M2LVjPMpM28ftJYioiqCEyJz6TmahY4WAiEAkZgr5igxWK1GVv1STX56Yw6OIrwcODrZRK7ChvO54OE=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 7936
      },
      "main": "index.js",
      "type": "commonjs",
      "types": "types/index.d.ts",
      "gitHead": "90e7177a45e993203898398c77b2f087d1dc23d8",
      "scripts": {
        "lint": "standard",
        "test": "npm run test:unit && npm run test:typescript",
        "test:unit": "c8 tape test/*.js",
        "test:typescript": "tsd"
      },
      "_npmUser": {
        "name": "jsumners",
        "email": "james.sumners@gmail.com"
      },
      "repository": {
        "url": "git://github.com/fastify/safe-regex.git",
        "type": "git"
      },
      "_npmVersion": "10.7.0",
      "description": "detect possibly catastrophic, exponential-time regular expressions",
      "directories": {},
      "_nodeVersion": "20.15.0",
      "dependencies": {
        "ret": "~0.5.0"
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^7.14.0",
        "tsd": "^0.31.0",
        "tape": "^5.7.5",
        "standard": "^17.1.0",
        "@fastify/pre-commit": "^2.1.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/safe-regex2_4.0.0_1720787112994_0.7491400192400415",
        "host": "s3://npm-registry-packages"
      }
    },
    "4.0.1": {
      "name": "safe-regex2",
      "version": "4.0.1",
      "keywords": [
        "catastrophic",
        "exponential",
        "regex",
        "safe",
        "sandbox"
      ],
      "author": {
        "url": "http://substack.net",
        "name": "James Halliday",
        "email": "mail@substack.net"
      },
      "license": "MIT",
      "_id": "safe-regex2@4.0.1",
      "maintainers": [
        {
          "name": "rafaelgss",
          "email": "rafael.nunu@hotmail.com"
        },
        {
          "name": "zekth",
          "email": "vince.legoff@gmail.com"
        },
        {
          "name": "eomm",
          "email": "behemoth89@gmail.com"
        },
        {
          "name": "gurgunday",
          "email": "hey@gurgun.day"
        },
        {
          "name": "ivan-tymoshenko",
          "email": "ivan@tymoshenko.me"
        },
        {
          "name": "simoneb",
          "email": "simone.busoli@gmail.com"
        },
        {
          "name": "climba03003",
          "email": "kaka@kakawebsitedemo.com"
        },
        {
          "name": "jsumners",
          "email": "james.sumners@gmail.com"
        },
        {
          "name": "fdawgs",
          "email": "frazer.dev@icloud.com"
        },
        {
          "name": "matteo.collina",
          "email": "hello@matteocollina.com"
        }
      ],
      "contributors": [
        {
          "name": "Matteo Collina",
          "email": "hello@matteocollina.com"
        },
        {
          "url": "https://heyhey.to/G",
          "name": "Gürgün Dayıoğlu",
          "email": "hey@gurgun.day"
        },
        {
          "url": "https://james.sumners.info",
          "name": "James Sumners"
        },
        {
          "url": "https://github.com/fdawgs",
          "name": "Frazer Smith",
          "email": "frazer.dev@icloud.com"
        }
      ],
      "homepage": "https://github.com/fastify/safe-regex2",
      "bugs": {
        "url": "https://github.com/fastify/safe-regex2/issues"
      },
      "dist": {
        "shasum": "b0a4b0216c1dd0256af987b7aea473e1c91543a8",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/safe-regex2/-/safe-regex2-4.0.1.tgz",
        "fileCount": 13,
        "integrity": "sha512-goqsB+bSlOmVX+CiFX2PFc1OV88j5jvBqIM+DgqrucHnUguAUNtiNOs+aTadq2NqsLQ+TQ3UEVG3gtSFcdlkCg==",
        "signatures": [
          {
            "sig": "MEUCIQD9CbJmK5B5IKBtMj+XXTyaN+jOKs1FrljRbSu+RNIHvwIgcNYoNUoCX1rZ++DVwhULe17qOY6IKX5ycjAkt6SO2bI=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 9186
      },
      "main": "index.js",
      "type": "commonjs",
      "types": "types/index.d.ts",
      "funding": [
        {
          "url": "https://github.com/sponsors/fastify",
          "type": "github"
        },
        {
          "url": "https://opencollective.com/fastify",
          "type": "opencollective"
        }
      ],
      "gitHead": "ba5c2ed862ac209ae4abc158784a69df46354384",
      "scripts": {
        "lint": "eslint",
        "test": "npm run test:unit && npm run test:typescript",
        "lint:fix": "eslint --fix",
        "test:unit": "c8 tape test/*.js",
        "test:typescript": "tsd"
      },
      "_npmUser": {
        "name": "fdawgs",
        "email": "frazer.dev@icloud.com"
      },
      "repository": {
        "url": "git://github.com/fastify/safe-regex2.git",
        "type": "git"
      },
      "_npmVersion": "10.8.2",
      "description": "detect possibly catastrophic, exponential-time regular expressions",
      "directories": {},
      "_nodeVersion": "20.18.1",
      "dependencies": {
        "ret": "~0.5.0"
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^10.1.3",
        "tsd": "^0.31.0",
        "tape": "^5.7.5",
        "eslint": "^9.17.0",
        "neostandard": "^0.12.0",
        "@fastify/pre-commit": "^2.1.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/safe-regex2_4.0.1_1735565254414_0.8321911678517726",
        "host": "s3://npm-registry-packages-npm-production"
      }
    },
    "5.0.0": {
      "name": "safe-regex2",
      "version": "5.0.0",
      "keywords": [
        "catastrophic",
        "exponential",
        "regex",
        "safe",
        "sandbox"
      ],
      "author": {
        "url": "http://substack.net",
        "name": "James Halliday",
        "email": "mail@substack.net"
      },
      "license": "MIT",
      "_id": "safe-regex2@5.0.0",
      "maintainers": [
        {
          "name": "zekth",
          "email": "vince.legoff@gmail.com"
        },
        {
          "name": "eomm",
          "email": "behemoth89@gmail.com"
        },
        {
          "name": "gurgunday",
          "email": "hey@gurgun.day"
        },
        {
          "name": "ivan-tymoshenko",
          "email": "ivan@tymoshenko.me"
        },
        {
          "name": "simoneb",
          "email": "simone.busoli@gmail.com"
        },
        {
          "name": "climba03003",
          "email": "kaka@kakawebsitedemo.com"
        },
        {
          "name": "jsumners",
          "email": "james.sumners@gmail.com"
        },
        {
          "name": "fdawgs",
          "email": "frazer.dev@icloud.com"
        },
        {
          "name": "metcoder95",
          "email": "me@metcoder.dev"
        },
        {
          "name": "matteo.collina",
          "email": "hello@matteocollina.com"
        }
      ],
      "contributors": [
        {
          "name": "Matteo Collina",
          "email": "hello@matteocollina.com"
        },
        {
          "url": "https://heyhey.to/G",
          "name": "Gürgün Dayıoğlu",
          "email": "hey@gurgun.day"
        },
        {
          "url": "https://james.sumners.info",
          "name": "James Sumners"
        },
        {
          "url": "https://github.com/fdawgs",
          "name": "Frazer Smith",
          "email": "frazer.dev@icloud.com"
        }
      ],
      "homepage": "https://github.com/fastify/safe-regex2",
      "bugs": {
        "url": "https://github.com/fastify/safe-regex2/issues"
      },
      "dist": {
        "shasum": "762e4a4c328603427281d2b99662f2d04e4ae811",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/safe-regex2/-/safe-regex2-5.0.0.tgz",
        "fileCount": 13,
        "integrity": "sha512-YwJwe5a51WlK7KbOJREPdjNrpViQBI3p4T50lfwPuDhZnE3XGVTlGvi+aolc5+RvxDD6bnUmjVsU9n1eboLUYw==",
        "signatures": [
          {
            "sig": "MEUCIAWTN2IskeeH4XoDmxKCn9SNJhFqCqtQSJgNOdUGw6B6AiEA6kIoWcOCSphmH1nEfMjLLG8CORnAE+FH/PF0uCfjrE0=",
            "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
          }
        ],
        "unpackedSize": 9201
      },
      "main": "index.js",
      "type": "commonjs",
      "types": "types/index.d.ts",
      "funding": [
        {
          "url": "https://github.com/sponsors/fastify",
          "type": "github"
        },
        {
          "url": "https://opencollective.com/fastify",
          "type": "opencollective"
        }
      ],
      "gitHead": "eae408949fc25eb165284316c2b1062741dfc91f",
      "scripts": {
        "lint": "eslint",
        "test": "npm run test:unit && npm run test:typescript",
        "lint:fix": "eslint --fix",
        "test:unit": "c8 tape test/*.js",
        "test:typescript": "tsd"
      },
      "_npmUser": {
        "name": "fdawgs",
        "email": "frazer.dev@icloud.com"
      },
      "repository": {
        "url": "git://github.com/fastify/safe-regex2.git",
        "type": "git"
      },
      "_npmVersion": "10.8.2",
      "description": "detect possibly catastrophic, exponential-time regular expressions",
      "directories": {},
      "_nodeVersion": "20.18.1",
      "dependencies": {
        "ret": "~0.5.0"
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^10.1.3",
        "tsd": "^0.31.0",
        "tape": "^5.7.5",
        "eslint": "^9.17.0",
        "neostandard": "^0.12.0",
        "@fastify/pre-commit": "^2.1.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/safe-regex2_5.0.0_1741451831270_0.5975767791091413",
        "host": "s3://npm-registry-packages-npm-production"
      }
    },
    "5.1.0": {
      "name": "safe-regex2",
      "version": "5.1.0",
      "keywords": [
        "catastrophic",
        "exponential",
        "regex",
        "safe",
        "sandbox"
      ],
      "author": {
        "url": "http://substack.net",
        "name": "James Halliday",
        "email": "mail@substack.net"
      },
      "license": "MIT",
      "_id": "safe-regex2@5.1.0",
      "maintainers": [
        {
          "name": "zekth",
          "email": "vince.legoff@gmail.com"
        },
        {
          "name": "eomm",
          "email": "behemoth89@gmail.com"
        },
        {
          "name": "gurgunday",
          "email": "hey@gurgun.day"
        },
        {
          "name": "ivan-tymoshenko",
          "email": "ivan@tymoshenko.me"
        },
        {
          "name": "simoneb",
          "email": "simone.busoli@gmail.com"
        },
        {
          "name": "climba03003",
          "email": "kaka@kakawebsitedemo.com"
        },
        {
          "name": "jsumners",
          "email": "james.sumners@gmail.com"
        },
        {
          "name": "fdawgs",
          "email": "frazer.dev@icloud.com"
        },
        {
          "name": "metcoder95",
          "email": "me@metcoder.dev"
        },
        {
          "name": "matteo.collina",
          "email": "hello@matteocollina.com"
        }
      ],
      "contributors": [
        {
          "name": "Matteo Collina",
          "email": "hello@matteocollina.com"
        },
        {
          "url": "https://heyhey.to/G",
          "name": "Gürgün Dayıoğlu",
          "email": "hey@gurgun.day"
        },
        {
          "url": "https://james.sumners.info",
          "name": "James Sumners"
        },
        {
          "url": "https://github.com/fdawgs",
          "name": "Frazer Smith",
          "email": "frazer.dev@icloud.com"
        }
      ],
      "homepage": "https://github.com/fastify/safe-regex2",
      "bugs": {
        "url": "https://github.com/fastify/safe-regex2/issues"
      },
      "bin": {
        "safe-regex2": "bin/safe-regex2.js"
      },
      "dist": {
        "shasum": "758fd224d066f5abe24f67bd574a01c9dd447f51",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/safe-regex2/-/safe-regex2-5.1.0.tgz",
        "fileCount": 13,
        "integrity": "sha512-pNHAuBW7TrcleFHsxBr5QMi/Iyp0ENjUKz7GCcX1UO7cMh+NmVK6HxQckNL1tJp1XAJVjG6B8OKIPqodqj9rtw==",
        "signatures": [
          {
            "sig": "MEUCIQDYZOQcbIGKZ4JHECPBtzGew1zav7teY+hs8d47NTd8EAIgTTCn3+6HOBUyurymmMjuYI7GaHcnmDtG3vV5+NN4GtE=",
            "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
          }
        ],
        "unpackedSize": 11160
      },
      "main": "index.js",
      "type": "commonjs",
      "types": "types/index.d.ts",
      "funding": [
        {
          "url": "https://github.com/sponsors/fastify",
          "type": "github"
        },
        {
          "url": "https://opencollective.com/fastify",
          "type": "opencollective"
        }
      ],
      "gitHead": "96f8f0a42e1ff0b7ca7f57cb9990d9bf0cff0aa1",
      "scripts": {
        "lint": "eslint",
        "test": "npm run test:unit && npm run test:typescript",
        "lint:fix": "eslint --fix",
        "test:unit": "c8 --100 node --test",
        "test:typescript": "tsd"
      },
      "_npmUser": {
        "name": "fdawgs",
        "email": "frazer.dev@icloud.com"
      },
      "repository": {
        "url": "git://github.com/fastify/safe-regex2.git",
        "type": "git"
      },
      "_npmVersion": "11.8.0",
      "description": "detect possibly catastrophic, exponential-time regular expressions",
      "directories": {},
      "_nodeVersion": "24.13.1",
      "dependencies": {
        "ret": "~0.5.0"
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "c8": "^11.0.0",
        "tsd": "^0.33.0",
        "eslint": "^9.17.0",
        "neostandard": "^0.12.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/safe-regex2_5.1.0_1773334556032_0.45691149042897017",
        "host": "s3://npm-registry-packages-npm-production"
      }
    },
    "5.1.1": {
      "name": "safe-regex2",
      "version": "5.1.1",
      "description": "detect possibly catastrophic, exponential-time regular expressions",
      "main": "index.js",
      "type": "commonjs",
      "types": "types/index.d.ts",
      "bin": {
        "safe-regex2": "bin/safe-regex2.js"
      },
      "dependencies": {
        "ret": "~0.5.0"
      },
      "devDependencies": {
        "c8": "^11.0.0",
        "eslint": "^9.17.0",
        "neostandard": "^0.13.0",
        "tsd": "^0.33.0"
      },
      "scripts": {
        "lint": "eslint",
        "lint:fix": "eslint --fix",
        "test": "npm run test:unit && npm run test:typescript",
        "test:typescript": "tsd",
        "test:unit": "c8 --100 node --test"
      },
      "repository": {
        "type": "git",
        "url": "git://github.com/fastify/safe-regex2.git"
      },
      "bugs": {
        "url": "https://github.com/fastify/safe-regex2/issues"
      },
      "homepage": "https://github.com/fastify/safe-regex2",
      "funding": [
        {
          "type": "github",
          "url": "https://github.com/sponsors/fastify"
        },
        {
          "type": "opencollective",
          "url": "https://opencollective.com/fastify"
        }
      ],
      "keywords": [
        "catastrophic",
        "exponential",
        "regex",
        "safe",
        "sandbox"
      ],
      "author": {
        "name": "James Halliday",
        "email": "mail@substack.net",
        "url": "http://substack.net"
      },
      "contributors": [
        {
          "name": "Matteo Collina",
          "email": "hello@matteocollina.com"
        },
        {
          "name": "Gürgün Dayıoğlu",
          "email": "hey@gurgun.day",
          "url": "https://heyhey.to/G"
        },
        {
          "name": "James Sumners",
          "url": "https://james.sumners.info"
        },
        {
          "name": "Frazer Smith",
          "email": "frazer.dev@icloud.com",
          "url": "https://github.com/fdawgs"
        }
      ],
      "license": "MIT",
      "gitHead": "35dd3a751b3362d265adfc30170078667464645e",
      "_id": "safe-regex2@5.1.1",
      "_nodeVersion": "24.14.0",
      "_npmVersion": "11.9.0",
      "dist": {
        "integrity": "sha512-mOSBvHGDZMuIEZMdOz/aCEYDCv0E7nfcNsIhUF+/P+xC7Hyf3FkvymqgPbg9D1EdSGu+uKbJgy09K/RKKc7kJA==",
        "shasum": "a5f3a6e35b8d84d0f41fa22efd5b6d30b367bbc7",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/safe-regex2/-/safe-regex2-5.1.1.tgz",
        "fileCount": 14,
        "unpackedSize": 11506,
        "signatures": [
          {
            "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
            "sig": "MEUCIQDYxhwd8ioyUstB+bhFBcySUmBk6nHRhHyhFJ/EcHvFDwIgSX8G5d4ecjLCJp3Tt9VqE8MHn+xt3IZS0NusyXHfzaE="
          }
        ]
      },
      "_npmUser": {
        "name": "climba03003",
        "email": "kaka@kakawebsitedemo.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "zekth",
          "email": "vince.legoff@gmail.com"
        },
        {
          "name": "eomm",
          "email": "behemoth89@gmail.com"
        },
        {
          "name": "gurgunday",
          "email": "hey@gurgun.day"
        },
        {
          "name": "ivan-tymoshenko",
          "email": "ivan@tymoshenko.me"
        },
        {
          "name": "simoneb",
          "email": "simone.busoli@gmail.com"
        },
        {
          "name": "climba03003",
          "email": "kaka@kakawebsitedemo.com"
        },
        {
          "name": "jsumners",
          "email": "james.sumners@gmail.com"
        },
        {
          "name": "fdawgs",
          "email": "frazer.dev@icloud.com"
        },
        {
          "name": "metcoder95",
          "email": "me@metcoder.dev"
        },
        {
          "name": "matteo.collina",
          "email": "hello@matteocollina.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages-npm-production",
        "tmp": "tmp/safe-regex2_5.1.1_1776573359303_0.025517977198721287"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "safe-regex2",
  "time": {
    "created": "2019-02-18T05:40:35.645Z",
    "modified": "2026-05-20T11:41:06.485Z",
    "2.0.0": "2019-02-18T05:40:35.761Z",
    "3.0.0": "2022-05-25T10:30:14.103Z",
    "3.1.0": "2022-12-04T23:58:26.378Z",
    "4.0.0": "2024-07-12T12:25:13.129Z",
    "4.0.1": "2024-12-30T13:27:34.583Z",
    "5.0.0": "2025-03-08T16:37:11.509Z",
    "5.1.0": "2026-03-12T16:55:56.170Z",
    "5.1.1": "2026-04-19T04:35:59.467Z"
  },
  "contributors": [
    {
      "name": "Matteo Collina",
      "email": "hello@matteocollina.com"
    },
    {
      "name": "Gürgün Dayıoğlu",
      "email": "hey@gurgun.day",
      "url": "https://heyhey.to/G"
    },
    {
      "name": "James Sumners",
      "url": "https://james.sumners.info"
    },
    {
      "name": "Frazer Smith",
      "email": "frazer.dev@icloud.com",
      "url": "https://github.com/fdawgs"
    }
  ],
  "readmeFilename": "README.md",
  "homepage": "https://github.com/fastify/safe-regex2"
}