{"name":"get-urls","version":"8.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":">=6"},"scripts":{"test":"xo && ava"},"keywords":["get","urls","url","uri","extract","find","scrape","text","string"],"dependencies":{"normalize-url":"^3.3.0","url-regex":"^4.0.0"},"devDependencies":{"ava":"^0.25.0","xo":"^0.23.0"},"gitHead":"b1195c4bf9ea5e3215c219834ae5cae36c3757c3","bugs":{"url":"https://github.com/sindresorhus/get-urls/issues"},"homepage":"https://github.com/sindresorhus/get-urls#readme","_id":"get-urls@8.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-9c6aVD6HqnpFjqWSoRzSGNo69hNnSa8EevNFVeIRSLYqYlIJNvtHgrqiQ1sUjHwbZPBY5gO1FMlVjmElfdneqw==","shasum":"62a0225cf96e2336b57e5041781f015141f81511","tarball":"http://registry-npm.ywwl.com/get-urls/download/get-urls-8.0.0.tgz","fileCount":4,"unpackedSize":4087,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbkRT4CRA9TVsSAnZWagAAxOEP/AlcgprHC1kAyISddjT6\nsjhHjxnr0VO8WMoA05LwBERZMjuPBLxQdjs3rJ7vvVB7UnpLDFu9DSVczq2y\nRmlxlG2+/deulZGTvf4LdcjhFcHAoUARkFDXkFzOcyRULBaDdY6ETmv+qdzR\npobNDgS3VD8sw8KbJe4pB4qCuWXju/N38EeVvd/PE1kP21tD9UuJGEvfKcol\nDfCT+NvGWuy5HmYif2vvUoJE0bLUQUSeC6jCHGNlsQetA9Tqd7aAs0HKqMU1\n9vlxzt6IbfnSRCm2zdlnz/5vZvntST0nIIHoaxuFdmKxrySjNSGlPOm0NPQf\nq13CEaulBcbdSZ4CTjSUzJCbc9ErLdH+/iVBvssaU4TeMs/y6Os8gnsPPfmW\nzn3mhaW76TzIMWGBA0U/aYqKRMnxKwmaSeO1OzTWBW9xvFcCUHGiq+XMJVIf\ngaWvkF66EX2KYVf5Pdj1JmbZP/e3Md2AckgJQNMQ5LK1tKNq6uv5Ha814JjY\n4LOeZn6G0aT7a5y4Eo+dWqFJiVdtdKROJLQJqfL5At911Jh4jmZOsjwHcWXQ\nYtj9xJoYtE6HpHZXep7Mth2Ss/ZZD86j5DQg93IA0tvYkFqlBasBYSTq6LhJ\nK6ttoFwkIpMjAzE4UznVOmuDbDW87y+xqmIYn64hoUk31MK1jBqv6RErT3nr\np4aK\r\n=QM7/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA2B3kkJqdPLKK/MR/phd9ZikjmZUy3QqIdcb4MF/aRMAiEA2tlfO6EXOYCkngdKlQJnlema0Tabb1aeilxp3FGVg7o="}],"size":2142,"noattachment":false,"key":"/get-urls/-/get-urls-8.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_8.0.0_1536234743575_0.8503855501800306"},"_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":1536234743749,"_cnpm_publish_time":1536234743749,"dist-tags":{"latest":"12.1.0"}}