{"name":"get-urls","version":"6.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":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["get","urls","url","uri","extract","find","scrape","text","string"],"dependencies":{"array-uniq":"^1.0.0","normalize-url":"^1.3.0","url-regex":"^4.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"9891dbb020cc772d7ebfacb4b1209a3e0b67d26e","bugs":{"url":"https://github.com/sindresorhus/get-urls/issues"},"homepage":"https://github.com/sindresorhus/get-urls#readme","_id":"get-urls@6.0.0","_shasum":"de3dbb6a76f24dfbba73897cd5180fc88cd9bc14","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"de3dbb6a76f24dfbba73897cd5180fc88cd9bc14","tarball":"http://registry-npm.ywwl.com/get-urls/download/get-urls-6.0.0.tgz","integrity":"sha512-Yrm5LnbpUNT1P2HC8DInM1lgZxN6xm3ketY+IVNKdyq8S/jeomeneaKHuamWSZIY0kv1P1jbYVRuRtCYyv3f2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICjFv7WF6vg+6ME5HouDcCubiM5xVDz/6u8b64OGN0jwAiBx63nrLXFxrIyot/5Ih/UV4BDBW7UylGfELN3NdwcZtw=="}],"size":1715,"noattachment":false,"key":"/get-urls/-/get-urls-6.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"kevva","email":"kevinmartensson@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/get-urls-6.0.0.tgz_1484902428364_0.7880218429490924"},"directories":{},"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":1484902430093,"_cnpm_publish_time":1484902430093,"dist-tags":{"latest":"12.1.0"}}