{"name":"get-urls","version":"9.2.1","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":"fbf2127292711942bc67ab8d1484f01956290475","bugs":{"url":"https://github.com/sindresorhus/get-urls/issues"},"homepage":"https://github.com/sindresorhus/get-urls#readme","_id":"get-urls@9.2.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-/3TvzO0Na4v5mvTs+6mOGTOz3woxuEcB3TiGzKry6VtKBrqSOm6D33vjYUxU2WD2mPmBPe73oE5d6zx119+DdA==","shasum":"e823a0f64e115578cc4ccd22d0b946119ae92629","tarball":"http://registry-npm.ywwl.com/get-urls/download/get-urls-9.2.1.tgz","fileCount":5,"unpackedSize":6017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+EDGCRA9TVsSAnZWagAAoL4P/jVLp9ycj4rBjj/DAE/x\nqVBrTKGW5ySfYGy3SYecIQDO7c2ZZ8EzwxNUdTrEYlwEqCLNIIzdeksFVqFY\nktUBZkhCpKDoDji50KRxn45cqcHrH6v+23vFGbohi/eloM/Idub+/Flv0hgm\nG1eszZcm+Dz8MrGylpCxYObs5lr1lNOfpHYtMfu55tlPBWd7DKYewCzcfaq3\n5gi55jjAeZfHkQrVO85gAjmJd/vNBFISTqXlVMlbTHj2RM4NgYWLC8K9uISO\nX1uPEkxfOLwm8HsQO33LipeYfQZ5S5DKP/Snicp7e0KdI9VQkcUS22QPXmrf\nMoiRBarqlnvQmPG1G0L7ImvRqFhy4aG1AhAhMNmo8cuwoCHDsSfzjAUqYv7Z\n4HyQXjGQERlgeQNQprFPZXnsdTOFx1OLoottR3xHSFhC4U8vrvNmuI7o0gPA\n/f4ZRkCLtETJHcTK2JC1OvRGyDut1/bCz4x0rAfHT2jCXMsaVp1NQ22kuShV\ndAVLFyBowcsKBXB6yGu9hM9daQJoX7UXMOpG60QTcobkqfELulh4VAbNSs+t\nGuiBACcvFE+ckZwh4V7e/FR1FEfZgsStobmX/+HZHstIxFrbbpos8qgFQaEC\nTM2YNVmjpvorJW1BxCkTOuTV78uxEztI0/N07x7K4omPhRFftZk8jAp9xUfT\nZ96r\r\n=qNcR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEHYievOTFKMmxgIftgLR+LQ2qRYmG4NBrY/tTwz/GT6AiEA3kbM+Lmzq/96U4D7sk4UNum/SRP6ajw490LWc+r21A8="}],"size":2685,"noattachment":false,"key":"/get-urls/-/get-urls-9.2.1.tgz"},"maintainers":[{"email":"sindresorhus@gmail.com","name":"sindresorhus"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-urls_9.2.1_1593327813570_0.4638111569142864"},"_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":1593327813839,"_cnpm_publish_time":1593327813839,"dist-tags":{"latest":"12.1.0"}}