Skip to content

inao/reachable-urls

 
 

Repository files navigation

reachable-urls

Check URLs are reachable in text.

Build Status NPM version Dependency Status devDependency Status

screenshot

Install

$ npm install --save reachable-urls

Usage

CLI

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

const assert = require('assert');
const reachableUrls = require('reachable-urls');

reachableUrls('https://foobarbaz.com https://github.com').then(result => {
  assert.deepEqual(result, {
    'https://github.com': true,
    'https://foobarbaz.com': false
  });
});

License

MIT © Shogo Sensui

About

Check URLs are reachable in text 🕵️

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%