Intelligently finds many different url formats in a string. For the browser and node.
## About
In a nutshell, `my-name-is-url` is an intelligent parser that searches a string of text for urls. The url spec is so vague that almost anything _could_ be a url. The regular expression used in `my-name-is-url` tries to match patterns likely to represent a url in a sentence rather than matching the actual url spec.
> ❗️**Important note**
@ -9,34 +11,43 @@ In a nutshell, `my-name-is-url` is an intelligent parser that searches a string
> If you're trying to parse a url into sections (scheme,host) or check a url is valid this module isn't for you. This module is intended to find urls in a string.
## Install
```shell
$ npm install --save my-name-is-url
```
or
```shell
$ jspm install npm:my-name-is-url
```
## Usage
Import the module
#### CommonJS
```js
var Urls = require('my-name-is-url');
```
#### ES6
```js
import Urls from 'my-name-is-url';
```
### Regex
If you just wanna do your own thing the regex used internally is helpfully exposed
```js
const UrlRegex = Urls.regex;
```
### Get Urls
The `get()` method returns an array of urls in a string
```js
@ -48,6 +59,7 @@ Urls(text).get(); // Returns:
```
### Filter Urls
The `filter()` method runs a filter on each url in a string