esm-dirname This is a quick cludge almost entirely copied from here intended to help facilitate migration from CJS to ESM. ## Usage: import { dirname } from "esm-dirname"; const __dirname = dirname(import.meta);