0.0.3 • Published 9 years ago

brokenlink v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

brokenlink

brokenlink will be a broken link checker, both for online and offlie websites.

How to use it

let brokenlink = require('brokenlink')
let https = require('https')

brokenlink.parseURLs('tests/readme.md', (matches) => {
  matches.map((url) => {
    https.get(url, (res) => {
      console.log(`${url}: ${res.statusCode}`);
      res.resume();
    }).on('error', (e) => {
      console.error(`${url}: ${e.message}`);
    });
  })
})
0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago