esm-dirname
This is a quick cludge almost entirely copied from here intended to help facilitate migration from CJS to ESM.
Usage:
;const __dirname =
This is a quick cludge almost entirely copied from here intended to help facilitate migration from CJS to ESM.
;const __dirname =
npm i esm-dirname
3
0.1.1
ISC
1.38 kB
4