UNPKG

eslint-doc-generator

Version:

Automatic documentation generator for ESLint plugins and rules.

10 lines (9 loc) 269 B
import { pathToFileURL } from 'node:url'; /** * Ensure that we import absolute paths correctly in Windows. * https://github.com/nodejs/node/issues/31710 */ export function importAbs(path) { const urlHref = pathToFileURL(path).href; return import(urlHref); }