dirname-es
v1.0.7
Published
__dirname and __filename in ESM
Downloads
2
Readme
dirname-es
Is a library to get the name of the directory and the filename where a file is located.
Usage
import { diname, filename } from 'dirname-es'
const __dirname = diname(import.meta)
const __filename = filename(import.meta)