esm-dirname
v0.1.1 esm
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);
This is a quick cludge almost entirely copied from here intended to help facilitate migration from CJS to ESM.
import { dirname } from "esm-dirname";
const __dirname = dirname(import.meta);