{"_id":"is-regexp","_rev":"1954139","name":"is-regexp","description":"Check if a value is a regular expression","dist-tags":{"latest":"3.1.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-12-13T15:01:15.000Z","created":"2014-06-11T09:12:27.882Z","3.1.0":"2021-10-31T05:37:37.669Z","3.0.0":"2021-04-07T17:28:05.848Z","2.1.0":"2019-04-16T17:19:56.556Z","2.0.0":"2018-03-22T15:00:15.514Z","1.0.0":"2014-06-11T09:12:27.882Z"},"users":{"rocket0191":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-regexp.git"},"versions":{"3.1.0":{"name":"is-regexp","version":"3.1.0","description":"Check if a value is a regular expression","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-regexp.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["regex","regexp","regular","expression","regular expression","check","type","is"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"types":"./index.d.ts","gitHead":"e38696a04645a94a0c1db00ecf8a28822a33b5f6","bugs":{"url":"https://github.com/sindresorhus/is-regexp/issues"},"homepage":"https://github.com/sindresorhus/is-regexp#readme","_id":"is-regexp@3.1.0","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"shasum":"0235eab9cda5b83f96ac4a263d8c32c9d5ad7422","size":1756,"noattachment":false,"key":"/is-regexp/-/is-regexp-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-regexp/download/is-regexp-3.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-regexp_3.1.0_1635658657476_0.15874907751788414"},"_hasShrinkwrap":false,"publish_time":1635658657669,"_cnpm_publish_time":1635658657669},"3.0.0":{"name":"is-regexp","version":"3.0.0","description":"Check if a value is a regular expression","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-regexp.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["regex","regexp","regular","expression","regular expression","check","type","is"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"7612c2ebbb367ee8922757ec1702a527aaea60bd","bugs":{"url":"https://github.com/sindresorhus/is-regexp/issues"},"homepage":"https://github.com/sindresorhus/is-regexp#readme","_id":"is-regexp@3.0.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"6f92c66ecd4206a9e41fbabbd63a8e05ba76fd0c","size":1701,"noattachment":false,"key":"/is-regexp/-/is-regexp-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-regexp/download/is-regexp-3.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-regexp_3.0.0_1617816485704_0.9862342517404068"},"_hasShrinkwrap":false,"publish_time":1617816485848,"_cnpm_publish_time":1617816485848},"2.1.0":{"name":"is-regexp","version":"2.1.0","description":"Check if a value is a regular expression","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-regexp.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd"},"keywords":["regex","regexp","regular","expression","regular expression","re","check","type","is"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"49e4f007cb9ff3661f37a18aaa7578bebcae3270","bugs":{"url":"https://github.com/sindresorhus/is-regexp/issues"},"homepage":"https://github.com/sindresorhus/is-regexp#readme","_id":"is-regexp@2.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"cd734a56864e23b956bf4e7c66c396a4c0b22c2d","size":1513,"noattachment":false,"key":"/is-regexp/-/is-regexp-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-regexp/download/is-regexp-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-regexp_2.1.0_1555435196431_0.9120120436081753"},"_hasShrinkwrap":false,"publish_time":1555435196556,"_cnpm_publish_time":1555435196556},"2.0.0":{"name":"is-regexp","version":"2.0.0","description":"Check if a value is a regular expression","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/is-regexp.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["regex","regexp","regular","expression","regular expression","re","check","type","is"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"c3cc127e38b11a2b3c720582f32b31cfd9adc1ee","bugs":{"url":"https://github.com/sindresorhus/is-regexp/issues"},"homepage":"https://github.com/sindresorhus/is-regexp#readme","_id":"is-regexp@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d669511d64a620c7a8dffa9a1e00710f9275ace0","size":1418,"noattachment":false,"key":"/is-regexp/-/is-regexp-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-regexp/download/is-regexp-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-regexp_2.0.0_1521730815430_0.674212659134924"},"_hasShrinkwrap":false,"publish_time":1521730815514,"_cnpm_publish_time":1521730815514},"1.0.0":{"name":"is-regexp","version":"1.0.0","description":"Check whether a variable is a regular expression","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/is-regexp"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["regex","regexp","regular","expression","regular expression","re","check","type","is"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/is-regexp/issues"},"homepage":"https://github.com/sindresorhus/is-regexp","_id":"is-regexp@1.0.0","_shasum":"fd2d883545c46bac5a633e7b9a09e87fa2cb5069","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"fd2d883545c46bac5a633e7b9a09e87fa2cb5069","size":748,"noattachment":false,"key":"/is-regexp/-/is-regexp-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-regexp/download/is-regexp-1.0.0.tgz"},"directories":{},"publish_time":1402477947882,"_cnpm_publish_time":1402477947882,"_hasShrinkwrap":false}},"readme":"# is-regexp\n\n> Check if a value is a regular expression\n\n## Install\n\n```\n$ npm install is-regexp\n```\n\n## Usage\n\n```js\nimport isRegexp from 'is-regexp';\n\nisRegexp('unicorn');\n//=> false\n\nisRegexp(/unicorn/);\n//=> true\n\nisRegexp(new RegExp('unicorn'));\n//=> true\n```\n\n## FAQ\n\n#### [Why not just use `instanceof` instead of this package?](https://github.com/sindresorhus/is#why-not-just-use-instanceof-instead-of-this-package)\n\n## Related\n\n- [is](https://github.com/sindresorhus/is) - Type check values\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-is-regexp?utm_source=npm-is-regexp&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","_attachments":{},"homepage":"https://github.com/sindresorhus/is-regexp#readme","bugs":{"url":"https://github.com/sindresorhus/is-regexp/issues"},"license":"MIT"}