MOON
Server: Apache
System: Linux e2e-78-16.ssdcloudindia.net 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User: imensosw (1005)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/imensosw/.npm/registry.npmjs.org/safe-regex/.cache.json
{"_id":"safe-regex","_rev":"34-422e495ab5f521fd70b5d01757ac9ad7","name":"safe-regex","description":"detect possibly catastrophic, exponential-time regular expressions","dist-tags":{"latest":"2.0.0"},"versions":{"0.0.0":{"name":"safe-regex","version":"0.0.0","description":"detect possibly catastrophic, exponential-time regular expressions","main":"index.js","dependencies":{"ret":"~0.1.6"},"devDependencies":{"tape":"~1.0.4"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/8","ie/9","ie/10","firefox/latest","chrome/latest","opera/latest","safari/latest"]},"repository":{"type":"git","url":"git://github.com/substack/safe-regex.git"},"homepage":"https://github.com/substack/safe-regex","keywords":["catastrophic","exponential","regex","safe","sandbox"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","bugs":{"url":"https://github.com/substack/safe-regex/issues"},"_id":"safe-regex@0.0.0","dist":{"shasum":"9a9ae1f35a6ea8047b6ea6ecf9c05143e1efc3ab","tarball":"http://registry.npmjs.org/safe-regex/-/safe-regex-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.0","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"directories":{}},"0.0.1":{"name":"safe-regex","version":"0.0.1","description":"detect possibly catastrophic, exponential-time regular expressions","main":"index.js","dependencies":{"ret":"~0.1.6"},"devDependencies":{"tape":"~1.0.4"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/8","ie/9","ie/10","firefox/latest","chrome/latest","opera/latest","safari/latest"]},"repository":{"type":"git","url":"git://github.com/substack/safe-regex.git"},"homepage":"https://github.com/substack/safe-regex","keywords":["catastrophic","exponential","regex","safe","sandbox"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","bugs":{"url":"https://github.com/substack/safe-regex/issues"},"_id":"safe-regex@0.0.1","dist":{"shasum":"350ae32b49b7dc75d1cac3a18cb8b375a94ef15c","tarball":"http://registry.npmjs.org/safe-regex/-/safe-regex-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"directories":{}},"1.0.0":{"name":"safe-regex","version":"1.0.0","description":"detect possibly catastrophic, exponential-time regular expressions","main":"index.js","dependencies":{"ret":"~0.1.10"},"devDependencies":{"tape":"^3.5.0"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/8","ie/9","ie/10","firefox/latest","chrome/latest","opera/latest","safari/latest"]},"repository":{"type":"git","url":"git://github.com/substack/safe-regex.git"},"homepage":"https://github.com/substack/safe-regex","keywords":["catastrophic","exponential","regex","safe","sandbox"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","gitHead":"4ffa3f1b0ffe993ecaee97a622fb17469db2c2c6","bugs":{"url":"https://github.com/substack/safe-regex/issues"},"_id":"safe-regex@1.0.0","_shasum":"2a88b57eb36396bb4c69218a3acd3334c5570123","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.35","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"dist":{"shasum":"2a88b57eb36396bb4c69218a3acd3334c5570123","tarball":"http://registry.npmjs.org/safe-regex/-/safe-regex-1.0.0.tgz"},"directories":{}},"1.1.0":{"name":"safe-regex","version":"1.1.0","description":"detect possibly catastrophic, exponential-time regular expressions","main":"index.js","dependencies":{"ret":"~0.1.10"},"devDependencies":{"tape":"^3.5.0"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/8","ie/9","ie/10","firefox/latest","chrome/latest","opera/latest","safari/latest"]},"repository":{"type":"git","url":"git://github.com/substack/safe-regex.git"},"homepage":"https://github.com/substack/safe-regex","keywords":["catastrophic","exponential","regex","safe","sandbox"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","gitHead":"d2570f31bd9d779515015917bb8297c753e46572","bugs":{"url":"https://github.com/substack/safe-regex/issues"},"_id":"safe-regex@1.1.0","_shasum":"40a3669f3b077d1e943d44629e157dd48023bf2e","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.12.0","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"dist":{"shasum":"40a3669f3b077d1e943d44629e157dd48023bf2e","tarball":"http://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz"},"directories":{}},"2.0.0":{"name":"safe-regex","version":"2.0.0","description":"detect possibly catastrophic, exponential-time regular expressions","main":"index.js","dependencies":{"regexp-tree":"~0.0.85"},"devDependencies":{"tape":"^3.5.0"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/8","ie/9","ie/10","firefox/latest","chrome/latest","opera/latest","safari/latest"]},"repository":{"type":"git","url":"git://github.com/davisjam/safe-regex.git"},"homepage":"https://github.com/davisjam/safe-regex","keywords":["catastrophic","exponential","regex","safe","sandbox"],"author":{"name":"James C.","email":"davisjam@vt.edu","url":"Jamie"},"license":"MIT","gitHead":"cd95cff13de26a3065a97eeb90dba360a95790d8","bugs":{"url":"https://github.com/davisjam/safe-regex/issues"},"_id":"safe-regex@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.2.1","_npmUser":{"name":"davisjam","email":"davisjam@vt.edu"},"dist":{"integrity":"sha512-thCAfpaDb/DuCwidgS2h5BGyNx+vcN9F8fPLLhOrDndirBhOAwPkB4V28LMc+/Km1uHOg0APIIXdSg1Ck8BHjw==","shasum":"1c021d0d55ee116bf6caeeb1d7d0a388509f7112","tarball":"https://registry.npmjs.org/safe-regex/-/safe-regex-2.0.0.tgz","fileCount":8,"unpackedSize":6297,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb01YTCRA9TVsSAnZWagAA6eYP/RGb8XTt77idCZ+SIMT+\nsxoXkclnotDuOvnjje2mMzL5idYn6QQuFe+pTeBtFcaVCUMx3rpKVVd/+z46\nG5Z8qUJc8mrHf9bajUIgwpFVufEVGXmNFGH5fmC7nJQhm18c8ze4SDl1mU+y\nCwdteHQE0PkRtRwF3f8LyzkKg8U6n6c2hGDTZIRYcZa+KHOpXrDwdBbbAdyQ\nF0ZUyPyNRO4kF8t8q/gWs17I56EcvSpdBAnw2je2Ow8HCTh4UD27Y9mF2K6c\nMvSqoUlx5FNf1CO4Wb0kjAYbmh7+5NX2njZa1KUB+jnAa/0jm0oTDg4g5dIh\nFDA02BqRlTZ5uGZv/s3mJQi645Q1L5CVDeOySfvoVG59sNV8hiTOzWisHNxD\nj+Tguiq+88xISuUJJqA9DmVtUvg8LLgJ/o+9Re6C7TziUpR28Cshrbjd9FS7\nV85NZxtLgRHI+Ogm9aZsx8NU8NnElMT+45BFf+7twop/CMhZj6eYS05kZ0Es\n+8EtPulPyX7VBAZb85rPnVX46LNLMCWRqgl6gvkHzDlZjPLqrqA9RCDlhE9x\nxq1qt6DTXRArxWwt6DlPGXNV0Gm3VFr4IqdaRUrchdYj/RbTuE79BO5MTQMa\njInQ1jpb/9z9q+lxim7JX/7ow51htlPc8HusbQsYRVA68poYGmyA4KPyO34i\nXeX0\r\n=3u4b\r\n-----END PGP SIGNATURE-----\r\n"},"maintainers":[{"email":"davisjam@vt.edu","name":"davisjam"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/safe-regex_2.0.0_1540576786474_0.40345973051344486"},"_hasShrinkwrap":false}},"readme":"# safe-regex\n\nDetect potentially\n[catastrophic](http://regular-expressions.mobi/catastrophic.html)\n[exponential-time](http://perlgeek.de/blog-en/perl-tips/in-search-of-an-exponetial-regexp.html)\nregular expressions by limiting the\n[star height](https://en.wikipedia.org/wiki/Star_height) to 1.\n\nWARNING: This module has both false positives and false negatives.\nUse [vuln-regex-detector](https://github.com/davisjam/vuln-regex-detector) for improved accuracy.\n\n[![browser support](https://ci.testling.com/substack/safe-regex.png)](https://ci.testling.com/substack/safe-regex)\n\n[![build status](https://secure.travis-ci.org/substack/safe-regex.png)](http://travis-ci.org/substack/safe-regex)\n\n# Example\n\n``` js\nvar safe = require('safe-regex');\nvar 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\nReturn a boolean `ok` whether or not the regex `re` is safe and not possibly\ncatastrophic.\n\n`re` can be a `RegExp` object or just a string.\n\nIf the `re` is a string and is an invalid regex, returns `false`.\n\n* `opts.limit` - maximum number of allowed repetitions in the entire regex.\nDefault: `25`.\n\n# Install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install safe-regex\n```\n\n# License\n\nMIT\n","maintainers":[{"email":"davisjam@vt.edu","name":"davisjam"}],"time":{"modified":"2018-10-26T17:59:49.157Z","created":"2013-07-13T02:56:00.967Z","0.0.0":"2013-07-13T02:56:02.406Z","0.0.1":"2013-11-22T08:44:01.232Z","1.0.0":"2015-02-06T16:36:31.893Z","1.1.0":"2015-03-19T00:30:21.780Z","2.0.0":"2018-10-26T17:59:46.642Z"},"author":{"name":"James C.","email":"davisjam@vt.edu","url":"Jamie"},"repository":{"type":"git","url":"git://github.com/davisjam/safe-regex.git"},"users":{"julien-f":true,"cilindrox":true,"openam":true,"davidcai":true,"stretchgz":true,"csbun":true,"kobleistvan":true,"disqus":true,"scottfreecode":true,"lonjoy":true,"anchnk":true,"hibrahimsafak":true,"kikar":true,"joseph320":true,"raydog":true,"vishwasc":true,"dpjayasekara":true,"ngpvnk":true,"tkalfigo":true,"donecharlton":true},"homepage":"https://github.com/davisjam/safe-regex","keywords":["catastrophic","exponential","regex","safe","sandbox"],"bugs":{"url":"https://github.com/davisjam/safe-regex/issues"},"license":"MIT","readmeFilename":"README.md","_etag":"W/\"9d98eb057e695844840dfdd4a97fb1d2\"","_lastModified":"Fri, 26 Oct 2018 17:59:50 GMT","_cached":true}