An open API service indexing awesome lists of open source software.

https://github.com/1000ch/reachable-urls

Check URLs are reachable in text 🕵️
https://github.com/1000ch/reachable-urls

link nodejs reachability url

Last synced: 7 months ago
JSON representation

Check URLs are reachable in text 🕵️

Awesome Lists containing this project

README

          

# reachable-urls [![test](https://github.com/1000ch/reachable-urls/actions/workflows/test.yml/badge.svg)](https://github.com/1000ch/reachable-urls/actions/workflows/test.yml)

Check URLs are reachable in text.

![screenshot](screenshot.gif)

## Install

```bash
$ npm install --save reachable-urls
```

## Usage

### CLI

```bash
Usage
$ reachable-urls [ ...]

Options
--compact Show only not-reachable URLs
--help Show help
--silent Exit with success always
--stdin Check string from stdin
--version Show version
```

### JavaScript

```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
});
});
```

## License

[MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)