{"name":"get-urls","version":"9.2.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 && tsd"},"keywords":["get","urls","url","extract","find","scrape","text","string"],"dependencies":{"normalize-url":"^4.3.0","url-regex":"^5.0.0"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.9.0","xo":"^0.25.3"},"gitHead":"eeadb8b5200b077214e222e3ebc5e4a240d41b53","bugs":{"url":"https://github.com/sindresorhus/get-urls/issues"},"homepage":"https://github.com/sindresorhus/get-urls#readme","_id":"get-urls@9.2.0","_nodeVersion":"10.16.3","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-ErGHKhzGIrtobqmNNxjy7yxe4cEmAp9SMerzmFpldn0CkEr2EC+SvIiyef038JDjl2LVng7MMw8YunUKM7k3ww==","shasum":"df05cfad3ad984a34a5794209b837dd507af53fd","tarball":"http://registry-npm.ywwl.com/get-urls/download/get-urls-9.2.0.tgz","fileCount":5,"unpackedSize":5903,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdqVMiCRA9TVsSAnZWagAA94QP/3YUXor8Mgo8sXbosKk1\n6HsNRrOVPY/y5LzT6mq8+BENVpXIw/JryYNsIkF5EAfnBMuXUgEVnF42Ptlt\nAB2pYDHPvLO2/5fqE8ore8Z1bUdnipHr6HkQ+E2YmaLWMlTWWOKdHx95IzqM\nPiakRm1V6VDY8Yzaegi7xEy1rxU1Zih94lXi2YSaGJjrb1dMyUCwxyRDTWi/\n4sA+AcNGqI6CSMWSxtW7+LdPykMUG9oJwPboCC1cJa+P8V/+32K1+/XPzzlb\nz6J9/FtyLp5ClDme30VXY9uy2QWfGKwDoQOW6jf3bU/rVYuX+vLpV/mYagZD\nWDw3uEvNcxe0EEUYmub6WHwU9VLeD8cZrnbLbwb5DpoPIP43v57Os9gzEFYT\nB2VhPJbSReRaz0AORXz89rft6bbe8tz7WayayJ1JLMYXLNwayLQ2ThjMg2oG\nbD9rYWhJMcPjD6a30rlvhO9Ua4rSbO/aY1vcAGHeHsYEl/kO8+MpK3gqeSF1\nR32tAxrfhdZ5a5IIfJfziv0JrdorW8ZRGltGQKzlHFrENXDsyUuedMXPeaVQ\npMWfAgTUt6QZkKxTTH9qfhb3Vmnvk+gAw2dC2uzkQXejHmRb4VdVwCmz3s48\n8T+YlqkYfQDhwIiOynO9RriRFonYk8AzfYyZYkPHklOy9D0OtWbAuAPMvI9H\nKbPW\r\n=rfMl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDf1J7cfKDdhNjYuZ+D5G3n8m9qsqDS4aW5rjaM+VR7wgIhALcdjGa0HslD+bMzGrIPTv7MFfUqU6933rExP9Ft1zEj"}],"size":2639,"noattachment":false,"key":"/get-urls/-/get-urls-9.2.0.tgz"},"maintainers":[{"email":"sindresorhus@gmail.com","name":"sindresorhus"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-urls_9.2.0_1571377954135_0.03288482557646155"},"_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":1571377954317,"_cnpm_publish_time":1571377954317,"dist-tags":{"latest":"12.1.0"}}