is-http-url
Version:
Validate URLs for sane values
1 lines • 10.1 kB
JSON
{"_id":"is-regex","_rev":"11-6de55bfa1c5476bc68307e5b84fed43d","name":"is-regex","description":"Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag","dist-tags":{"latest":"1.0.3"},"versions":{"0.0.0":{"name":"is-regex","version":"0.0.0","description":"Is this value a JS regex?","author":{"name":"Jordan Harband"},"license":"MIT","main":"index.js","scripts":{"test":"node test.js","coverage":"covert test.js","coverage-quiet":"covert test.js --quiet"},"repository":{"type":"git","url":"git://github.com/ljharb/is-regex.git"},"bugs":{"url":"https://github.com/ljharb/is-regex/issues"},"homepage":"https://github.com/ljharb/is-regex","keywords":["regex","regexp","is","regular expression","regular","expression"],"dependencies":{},"devDependencies":{"tape":"~2.3.2","covert":"~0.3.0"},"testling":{"files":"test.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..12.0","opera/15.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"_id":"is-regex@0.0.0","dist":{"shasum":"b7a058f7b65f0c5145df21474662bdb90472215d","tarball":"https://registry.npmjs.org/is-regex/-/is-regex-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"directories":{}},"1.0.0":{"name":"is-regex","version":"1.0.0","description":"Is this value a JS regex?","author":{"name":"Jordan Harband"},"license":"MIT","main":"index.js","scripts":{"test":"node test.js && npm run coverage-quiet","coverage":"covert test.js","coverage-quiet":"covert test.js --quiet"},"repository":{"type":"git","url":"git://github.com/ljharb/is-regex.git"},"bugs":{"url":"https://github.com/ljharb/is-regex/issues"},"homepage":"https://github.com/ljharb/is-regex","keywords":["regex","regexp","is","regular expression","regular","expression"],"dependencies":{},"devDependencies":{"tape":"~2.13.1","covert":"~0.4.0"},"testling":{"files":"test.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..12.0","opera/15.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"_id":"is-regex@1.0.0","_shasum":"8ee666ad53df3dfb1e7deaad541f02a50005a99f","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"dist":{"shasum":"8ee666ad53df3dfb1e7deaad541f02a50005a99f","tarball":"https://registry.npmjs.org/is-regex/-/is-regex-1.0.0.tgz"},"directories":{}},"1.0.1":{"name":"is-regex","version":"1.0.1","description":"Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag","author":{"name":"Jordan Harband"},"license":"MIT","main":"index.js","scripts":{"test":"npm run lint && node test.js && npm run coverage-quiet","coverage":"covert test.js","coverage-quiet":"covert test.js --quiet","lint":"jscs *.js"},"repository":{"type":"git","url":"git://github.com/ljharb/is-regex.git"},"bugs":{"url":"https://github.com/ljharb/is-regex/issues"},"homepage":"https://github.com/ljharb/is-regex","keywords":["regex","regexp","is","regular expression","regular","expression"],"dependencies":{},"devDependencies":{"tape":"~3.4.0","covert":"1.0.0","jscs":"~1.10.0"},"testling":{"files":"test.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..12.0","opera/15.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"c278e21982ab6be7eff8223dd6ffb16326637382","_id":"is-regex@1.0.1","_shasum":"ae1de0fd81f62aa1978ccebf87cf35670b026114","_from":".","_npmVersion":"2.3.0","_nodeVersion":"1.0.4","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"dist":{"shasum":"ae1de0fd81f62aa1978ccebf87cf35670b026114","tarball":"https://registry.npmjs.org/is-regex/-/is-regex-1.0.1.tgz"},"directories":{}},"1.0.2":{"name":"is-regex","version":"1.0.2","description":"Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag","author":{"name":"Jordan Harband"},"license":"MIT","main":"index.js","scripts":{"test":"npm run lint && node test.js && npm run coverage-quiet","coverage":"covert test.js","coverage-quiet":"covert test.js --quiet","lint":"jscs *.js"},"repository":{"type":"git","url":"git://github.com/ljharb/is-regex.git"},"bugs":{"url":"https://github.com/ljharb/is-regex/issues"},"homepage":"https://github.com/ljharb/is-regex","keywords":["regex","regexp","is","regular expression","regular","expression"],"dependencies":{},"devDependencies":{"tape":"~3.4.0","covert":"1.0.0","jscs":"~1.10.0","semver":"~4.2.0"},"testling":{"files":"test.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..12.0","opera/15.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"ed8047dc58e07376bb2962a1cfeaa415df8a5293","_id":"is-regex@1.0.2","_shasum":"6087e95c826e91fb5ced034ed63de4a893da5aae","_from":".","_npmVersion":"2.3.0","_nodeVersion":"1.0.4","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"dist":{"shasum":"6087e95c826e91fb5ced034ed63de4a893da5aae","tarball":"https://registry.npmjs.org/is-regex/-/is-regex-1.0.2.tgz"},"directories":{}},"1.0.3":{"name":"is-regex","version":"1.0.3","description":"Is this value a JS regex? Works cross-realm/iframe, and despite ES6 @@toStringTag","author":{"name":"Jordan Harband"},"license":"MIT","main":"index.js","scripts":{"test":"npm run lint && node test.js && npm run security","coverage":"covert test.js","coverage-quiet":"covert test.js --quiet","lint":"npm run jscs && npm run eslint","jscs":"jscs *.js","eslint":"eslint test.js *.js","eccheck":"editorconfig-tools check *.js **/*.js > /dev/null","security":"nsp package"},"repository":{"type":"git","url":"git://github.com/ljharb/is-regex.git"},"bugs":{"url":"https://github.com/ljharb/is-regex/issues"},"homepage":"https://github.com/ljharb/is-regex","keywords":["regex","regexp","is","regular expression","regular","expression"],"dependencies":{},"devDependencies":{"tape":"~3.4.0","covert":"1.0.0","jscs":"~1.10.0","editorconfig-tools":"~0.0.1","nsp":"~1.0.0","eslint":"~0.13.0","semver":"~4.2.0"},"testling":{"files":"test.js","browsers":["iexplore/6.0..latest","firefox/3.0..6.0","firefox/15.0..latest","firefox/nightly","chrome/4.0..10.0","chrome/20.0..latest","chrome/canary","opera/10.0..12.0","opera/15.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2"]},"engines":{"node":">= 0.4"},"gitHead":"405685f6172a14d85e7a5f45e7112c9a608813f2","_id":"is-regex@1.0.3","_shasum":"0d55182bddf9f2fde278220aec3a75642c908637","_from":".","_npmVersion":"2.3.0","_nodeVersion":"1.0.4","_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"dist":{"shasum":"0d55182bddf9f2fde278220aec3a75642c908637","tarball":"https://registry.npmjs.org/is-regex/-/is-regex-1.0.3.tgz"},"directories":{}}},"readme":"#is-regex <sup>[![Version Badge][2]][1]</sup>\n\n[![Build Status][3]][4]\n[![dependency status][5]][6]\n[![dev dependency status][7]][8]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][11]][1]\n\n[![browser support][9]][10]\n\nIs this value a JS regex?\nThis module works cross-realm/iframe, and despite ES6 @@toStringTag.\n\n## Example\n\n```js\nvar isRegex = require('is-regex');\nvar assert = require('assert');\n\nassert.notOk(isRegex(undefined));\nassert.notOk(isRegex(null));\nassert.notOk(isRegex(false));\nassert.notOk(isRegex(true));\nassert.notOk(isRegex(42));\nassert.notOk(isRegex('foo'));\nassert.notOk(isRegex(function () {}));\nassert.notOk(isRegex([]));\nassert.notOk(isRegex({}));\n\nassert.ok(isRegex(/a/g));\nassert.ok(isRegex(new RegExp('a', 'g')));\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[1]: https://npmjs.org/package/is-regex\n[2]: http://vb.teelaun.ch/ljharb/is-regex.svg\n[3]: https://travis-ci.org/ljharb/is-regex.svg\n[4]: https://travis-ci.org/ljharb/is-regex\n[5]: https://david-dm.org/ljharb/is-regex.svg\n[6]: https://david-dm.org/ljharb/is-regex\n[7]: https://david-dm.org/ljharb/is-regex/dev-status.svg\n[8]: https://david-dm.org/ljharb/is-regex#info=devDependencies\n[9]: https://ci.testling.com/ljharb/is-regex.png\n[10]: https://ci.testling.com/ljharb/is-regex\n[11]: https://nodei.co/npm/is-regex.png?downloads=true&stars=true\n[license-image]: http://img.shields.io/npm/l/is-regex.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/is-regex.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=is-regex\n\n","maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"time":{"modified":"2015-01-30T08:01:27.392Z","created":"2014-01-15T09:16:09.209Z","0.0.0":"2014-01-15T09:16:09.209Z","1.0.0":"2014-05-19T07:26:17.660Z","1.0.1":"2015-01-28T21:56:26.403Z","1.0.2":"2015-01-29T22:29:04.957Z","1.0.3":"2015-01-30T08:01:27.392Z"},"users":{},"homepage":"https://github.com/ljharb/is-regex","keywords":["regex","regexp","is","regular expression","regular","expression"],"repository":{"type":"git","url":"git://github.com/ljharb/is-regex.git"},"author":{"name":"Jordan Harband"},"bugs":{"url":"https://github.com/ljharb/is-regex/issues"},"license":"MIT","readmeFilename":"README.md","_attachments":{},"_etag":"\"9S9NJ31Y41XO5EOC3Z57ILN9Y\""}