Skip to content

aendra-rininsland/esm-dirname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Simple stop-gap for the removal of __dirname in Node ESM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published