{"name":"get-urls","version":"10.0.1","description":"Get all URLs in a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/get-urls.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10.12.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["get","urls","url","extract","find","scrape","text","string"],"dependencies":{"normalize-url":"^5.1.0","url-regex-safe":"^2.0.2"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.13.1","xo":"^0.33.0"},"gitHead":"e0c984c2526074533f60928f5bd762fdcdad5cd7","bugs":{"url":"https://github.com/sindresorhus/get-urls/issues"},"homepage":"https://github.com/sindresorhus/get-urls#readme","_id":"get-urls@10.0.1","_nodeVersion":"14.17.5","_npmVersion":"7.20.3","dist":{"integrity":"sha512-5usUMF4FE0cTS7yUuRvBsB4tSs5u8KFn7v01+IDGL/18tuoADu5ehthqw+y2EHnJsWhsp1443K5P+C/XWZQ04g==","shasum":"d9b69a7762d105fb61bbf30ab0b625c7103d8105","tarball":"http://registry-npm.ywwl.com/get-urls/download/get-urls-10.0.1.tgz","fileCount":5,"unpackedSize":6012,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2sMcCRA9TVsSAnZWagAAYT0P/06Z7Ogywzs0/LVgRMl3\nftDsyX5ldrIQd0fCkFGQzdY8SSXjYHj2a7d9ctM6Tq+kOd/+j7+9P9naHZvB\nUdcqOSFC5UwVqZ/Gcfq0bIgnTj9p/vjHxQnw6WM3OvJjiTkSVxtQwOxJva19\nl6cyBlFMYssSBBHRv1pcPqfTmZt6h/zhQBQXeYWOLBC8B8OHKA4kDEtliKjo\n3rdqiDyWDitcg6Fq+rdGlw0HGpXtkv5JleHzWVQylF910lnrZJcnDzHaPM8P\nVbkUFzX7XL1dpk/lxQiidtnB0zcIS4AS/3PwMPRTyWKYe62FrePSH0FES7o8\nGZrgnfGr1EX3QqPvX/a9ofSbu80N7ZemuyXZRmfQX6t1JyP+jqQpWNqHnRVT\n3KdT5jT6q/QFry9SIcu/1Yv1STFKnOXe7+EsAnS5hZCE7TvJtXjlpP4G6Gja\nC5p0GE4U/zbFOt38GxzhHeMCAAkHa+qyUcRGQgh4WVoUL6ond41nnK+GG14c\nD7aOMZ10DQW11fB5v8mlWfRK0wUtm+fOhgt2uqx2Fzx/5IofdWdGDtjE0Z6g\n2CESncdwY4IzBdLp46BGyNDotduoEngaK5KfBHVyry4zuWRY/CuvYIpmtQH0\ndc9b2C0VaXdmFxrREJjFay9nujShMusHAHBqF7TGEIJbxAwAhs0Oqo/SIJsU\nC/ol\r\n=1BEj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAiohYiQdZzZ5GtYMv/EX0F+52HrpZN741QnIw4+YgCOAiABYa+GkYzzBEbQDA85KO6dFO1l3m0tWAa/zKP3+lRWew=="}],"size":2623,"noattachment":false,"key":"/get-urls/-/get-urls-10.0.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-urls_10.0.1_1633771602537_0.9950247696026104"},"_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":1633771602647,"_cnpm_publish_time":1633771602647,"dist-tags":{"latest":"12.1.0"}}