get-urls

Get all urls in a string

get-urls

Get all urls in a string

The urls will be normalized and uniquified.

$ npm install --save get-urls
var text = 'Lorem ipsum dolor sit amet, //sindresorhus.com consectetuer adipiscing http://yeoman.io elit.';
 
getUrls(text);
//=> ['http://sindresorhus.com', 'http://yeoman.io'] 

Required
Type: string

Type: object

See the normalize-url options.

$ npm install --global get-urls
$ get-urls --help
 
  Usage
    get-urls <file>
    cat <file> | get-urls

MIT © Sindre Sorhus