{"name":"get-urls","version":"9.0.0","description":"Get all URLs in a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-urls.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"keywords":["get","urls","url","uri","extract","find","scrape","text","string"],"dependencies":{"normalize-url":"^4.1.0","url-regex":"^4.0.0"},"devDependencies":{"ava":"^1.2.1","xo":"^0.24.0"},"gitHead":"8d7432880c87e72faa9816c2e114a578268bff57","bugs":{"url":"https://github.com/sindresorhus/get-urls/issues"},"homepage":"https://github.com/sindresorhus/get-urls#readme","_id":"get-urls@9.0.0","_nodeVersion":"10.15.0","_npmVersion":"6.8.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-5S10Ya9GeUuiiCZ7M47oqznuC00WJEYpO5m5VgjAi07LoIf6GEk4y1FYPBiG1CXMFdNXDa/awszuipUX5JVTFg==","shasum":"3ce8e4774a62016fb358cd19ad0a53d1b6ceb836","tarball":"http://registry-npm.ywwl.com/get-urls/download/get-urls-9.0.0.tgz","fileCount":4,"unpackedSize":4203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbTFVCRA9TVsSAnZWagAATpAQAI35B/mTgAfsgncsQI/7\n9EER/NxczyMEF7bf4ud/1BS6z7gvFd/uJ7QrVIizLCBZMtKNpXgoF3PMhGQK\nWjSZZ4KvdakPPSqP72yeW40XKA+Od6Ih+HnPDDAMClvqJd1ddcET0oQYmd7/\nEvQphbmJQWKhW+S8PDlfuFmObCw27r5yVmkG0qQzRUIe01UL1S8WRDrPGbfU\nVsEYLtgUwfb2QU90DEsujKOnspEiRsxhkvstE+MZnugjNj61Y3iZf3N11PNc\nrIyqqFg8BJP4T2Uc9BUidvSY3A8WjAVVe8+Y3L+LXdzHka8sVw9sHUY4l7NH\nWIXjMBaloeZl5yIE+HVXtEnBzNeG+0F9m458e5fm8mTyqu+V6CCf5rRtHH2O\ndhBFHbuM4sUk8krmKcWw53coZuNteQOHIDzXFNYpq/8xmBVlxo5UyUQrBhyO\nZzEr6rYy6wQvUNyI3XkmkhhWq1Pyp8YYww93AYZf7BFhOgD8kql6CdpZGvYN\nY/aEjsupBKEEVZYUuDYjp4DiDC2dS5TnL6I7VrFrsdR9fhBNRaZ5kEdbALvN\nETi/XeToB6I14n2grC3tvgbvJijZ9/lyyFUGn4e8ajzi56uGqShEWFcOogCb\nt7t1IbYrec6jYFPPScyi8N2mCfXh3ub+Xdnp7z9p3LBUp34QqlnofeqDY60A\nNbRM\r\n=tMjZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAcSTlmRhktZxFxoFHlkT2wjmDRPdtmUuX6jVPZdnVekAiEAnBOkDm4++y1FRQmCyYD4uMqhczTiAw9yCnwa1QV62oo="}],"size":2174,"noattachment":false,"key":"/get-urls/-/get-urls-9.0.0.tgz"},"maintainers":[{"name":"kevva","email":"kevinmartensson@gmail.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-urls_9.0.0_1550659924613_0.6362342549309417"},"_hasShrinkwrap":false,"readme":"# get-urls\n\n> Get all URLs in a string\n\nThe URLs will be [normalized](https://github.com/sindresorhus/normalize-url).\n\n*Do not use this for any kind of security-related validation.*\n\nPlease note the [known limitation](https://github.com/niftylettuce/url-regex-safe#limitations). You can work around this by setting `requireSchemeOrWww` to `true`.\n\n## Install\n\n```sh\nnpm install get-urls\n```\n\n## Usage\n\n```js\nimport getUrls from 'get-urls';\n\nconst text = 'Lorem ipsum dolor sit amet, //sindresorhus.com consectetuer adipiscing http://yeoman.io elit.';\n\ngetUrls(text);\n//=> Set {'http://sindresorhus.com', 'http://yeoman.io'}\n```\n\n## API\n\n### getUrls(text, options?)\n\nReturns a `Set` of URLs.\n\n### text\n\nType: `string`\n\n### options\n\nType: `object`\n\nAll the `normalize-url` [options](https://github.com/sindresorhus/normalize-url#options) in addition to:\n\n#### extractFromQueryString\n\nType: `boolean`\\\nDefault: `false`\n\nExtract URLs that appear as query parameters in the found URLs.\n\n#### exclude\n\nType: `string[]`\\\nDefault: `[]`\n\nExclude URLs that match URLs in the given array.\n\n#### requireSchemeOrWww\n\nType: `boolean`\\\nDefault: `false`\n\nRequire URLs to have a scheme or leading `www.` to be considered an URL. When `false`, matches against a list of valid TLDs, so it will match URLs like `unicorn.education`.\n\nDoes not affect URLs in query parameters if using the `extractFromQueryString` option.\n\n## Related\n\n- [get-urls-cli](https://github.com/sindresorhus/get-urls-cli) - CLI for this module\n- [linkify-urls](https://github.com/sindresorhus/linkify-urls) - Linkify URLs in text\n","publish_time":1550659924754,"_cnpm_publish_time":1550659924754,"dist-tags":{"latest":"12.1.0"}}