Examine deadlinks in a pages
yarn add [-D] check-deadlink
const checkDeadlink = require('check-deadlink');
(async () => {
// options is options of the `padex` package
const result = await checkDeadlink('https://example.com', options);
// result === {
// 'http://error.com': {
// document,
// from: [document, document, ...],
// /* In the above `from`,
// * Array of the Document of the `padex` package,
// * that has linked to this document
// */
// }
// }
})()
.catch(err => {
console.error(err);
});