1.0.7 • Published 1 year ago
@atomic-reactor/dirname v1.0.7
Module to avoid the dumb choice to get rid of dirname and filename in Node 18+
Install
$ npm install --save @atomic-reactor/dirname
Usage
import { dirname, filename } from '@atomic-reactor/dirname';
const __dirname = dirname(import.meta.url);
const __filename = filename(import.meta.url);