{"name":"get-urls","version":"4.0.0","description":"Get all urls in a string","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/get-urls"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"bin":{"get-urls":"cli.js"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js","cli.js"],"keywords":["urls","url","uri","get","extract","find","scrape","text","string","bin","cli","browser"],"dependencies":{"array-uniq":"^1.0.0","get-stdin":"^3.0.0","meow":"^2.0.0","normalize-url":"^1.0.0","url-regex":"^2.0.3"},"devDependencies":{"mocha":"*"},"gitHead":"cb6eba9f995c32ae098d483cd079189732ac809d","bugs":{"url":"https://github.com/sindresorhus/get-urls/issues"},"homepage":"https://github.com/sindresorhus/get-urls","_id":"get-urls@4.0.0","_shasum":"abd38933eb996211c9d5dd08fe84de9b76c1ef8a","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.32","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"},{"name":"kevva","email":"kevinmartensson@gmail.com"}],"dist":{"shasum":"abd38933eb996211c9d5dd08fe84de9b76c1ef8a","tarball":"http://registry-npm.ywwl.com/get-urls/download/get-urls-4.0.0.tgz","integrity":"sha512-m98/fjxeclu6wKgk8u1BITV1gPaCJ0PglMrQ0fJC/tPSa6QetuEzP/uoYc29L6WUPxG+hfTti9p5tbGLRS/ztQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjLj88JFUDvyIqnj8QXS3lZwEZKudfW/aZSbZn5LrrHQIgHWrWgegV4CxzYHJFxJ0O5M4SKDbJ6fMZpKs7Ia31SiI="}],"size":1943,"noattachment":false,"key":"/get-urls/-/get-urls-4.0.0.tgz"},"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":1420987607236,"_cnpm_publish_time":1420987607236,"dist-tags":{"latest":"12.1.0"}}