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 🕵️
- Host: GitHub
- URL: https://github.com/1000ch/reachable-urls
- Owner: 1000ch
- Created: 2017-02-07T13:55:01.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-08-05T07:01:42.000Z (about 1 year ago)
- Last Synced: 2025-02-27T01:13:32.650Z (8 months ago)
- Topics: link, nodejs, reachability, url
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/reachable-urls
- Size: 2.16 MB
- Stars: 29
- Watchers: 3
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# reachable-urls [](https://github.com/1000ch/reachable-urls/actions/workflows/test.yml)
Check URLs are reachable in text.

## 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)