{"name":"get-urls","version":"9.1.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","uri","extract","find","scrape","text","string"],"dependencies":{"normalize-url":"^4.3.0","url-regex":"^4.1.1"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"c374876bdbbdaf3c7f1f6c82cc0db23b27c5766a","bugs":{"url":"https://github.com/sindresorhus/get-urls/issues"},"homepage":"https://github.com/sindresorhus/get-urls#readme","_id":"get-urls@9.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-hp4c9xj6YnPTfTn8/ZkmhR5I4QTuUk9/NWDA0L4YLDoohQaDIF4C4nqvpEZUfmWDePVl1Ze8wPByyLItNkLtyg==","shasum":"2a6a772fd462aa1c3ec0cfb2e7f82551b32afe6c","tarball":"http://registry-npm.ywwl.com/get-urls/download/get-urls-9.1.0.tgz","fileCount":5,"unpackedSize":5214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcs+xACRA9TVsSAnZWagAAXFcP/31qH9IMjxAXft2paVvP\nUskVr1eyTkheb8gmyeG4ED600MSzaSh1ybx1JYEnQoHeRWGfGv5LjxUp9YnF\nvmMEcE2GiWtjCZSfQ6PtJohZZEcnZtOA1MCCPQSs72umnuZtRQejUWk5fJVC\nY1V0U8yCJbRsV13pPzhJP/8ud/fzARTTEKZBQb9hUAuhPwjNc/q7bvfYNcvu\n5dJMtYy2coRCE+RYGJvmArgc6y3mQpmZDLDRvVq9fpV/sR/cb5sjmIEnSkfn\nU+I9flldsG6mJBPzLt8yNkfsnzVMCqEZxsaHQJRYjkG/oUICf/JXDtyzSzx7\nHiqy4jF33JgbURnCyapDz3FWmjbNXfMctT9cBhUs8in4Pp6wUl5hhNGPfgyC\nPAK2KEcSoJ/3IKEd6zjQACXIYxvA8XK0ks5Zj2Em5wVVIy9d32xCVsVOczTu\nyJAm8iejKP7lJlFodlaz0IASfD9ehIsdYQZ0TGejVHc3UWYZpVzu0EALfCPc\nPgQeAebv05Z+buO+l7m5/rteBa2/CclZP/shMvPWJfJ/LbY0iWlJyOiOUsn2\nZ6EeKzGQTt8/cTVJz+FNgn2u+L2Zw/z93ej0aOIaxlCu0dYCwmj7HDxN44hJ\nhTwQCSWE7v8rRtAG7YIAYQiRuLt6skV8S2R49mYakRL8bV+sYB7lRMNCBNpV\nwh4y\r\n=oQSQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGn88jpgitH9hlJgcudoqQ35GY6hJGmN6oEkKI4UubViAiA1wK3Jrar6uJmSJbFHEY7UN6Eh+FM/cg4Fjf3cFKH8Qg=="}],"size":2453,"noattachment":false,"key":"/get-urls/-/get-urls-9.1.0.tgz"},"maintainers":[{"email":"sindresorhus@gmail.com","name":"sindresorhus"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-urls_9.1.0_1555295296081_0.45126971826638296"},"_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":1555295296223,"_cnpm_publish_time":1555295296223,"dist-tags":{"latest":"12.1.0"}}