reachable-urls
Version:
Check URLs are reachable in text
46 lines (32 loc) • 963 B
Markdown
Check URLs are reachable in text.

```bash
$ npm install --save reachable-urls
```
```bash
Usage
$ reachable-urls [<file|glob> ...]
Options
--compact Show only not-reachable URLs
--help Show help
--silent Exit with success always
--stdin Check string from stdin
--version Show version
```
```javascript
import assert from 'assert';
import reachableUrls from 'reachable-urls';
reachableUrls('https://foobarbaz.com https://github.com').then(result => {
assert.deepEqual(result, {
'https://github.com': true,
'https://foobarbaz.com': false
});
});
```
[](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)