Skip to content

juliangruber/find-urls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

find-urls

Find all urls in a text

Example

var find = require('find-urls');

var urls = find('Some http://google.com/ and http://segment.io.');
// => ['http://google.com/', 'http://segment.io']

Installation

Install with component(1):

$ component install juliangruber/find-urls

API

find(text)

Return an array of urls inside text.

Duplicates are removed and urls that end with punctuation are cleaned up.

License

MIT

About

Find all urls in a text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published