Find the broken links
npm install findlinks -g
findlinks https://eggjs.org/
Thanks https://cn.vuejs.org for test fixtures
If you require this module, it will return a function.
const findlinks = require('findlinks');
findlinks({ src: 'https://eggjs.org/' })
.then(result => console.log(result))
.catch(err => console.error(err));
// { count: xx, success: xx, fail: xx }
(The MIT License)