UNPKG

linkcheck-bin

Version:

An npm-installable wrapper for @filiph's linkcheck, a reasonably fast link checker.

16 lines (12 loc) 485 B
import path from "path"; import { fileURLToPath } from "url"; import { getBinFilename } from "./lib/utils.js"; // https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#what-do-i-use-instead-of-__dirname-and-__filename const __dirname = path.dirname(fileURLToPath(import.meta.url)); const linkcheck = path.join( __dirname, "vendor", getBinFilename(), ); // The only thing this module really exports is the absolute path to the binary: export default linkcheck;