esm-dirname
v0.1.1
Published
A stop-gap intended to help migrate older code to the new ECMAScript module syntax
Downloads
6
Readme
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);