Created
February 1, 2022 22:52
-
-
Save Luke-zhang-04/8f6e385cd9fff63f4e3d30ed0210b692 to your computer and use it in GitHub Desktop.
dirname in mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // __dirname in esm | |
| import {dirname} from "path" | |
| import {fileURLToPath} from "url" | |
| const __dirname = dirname(fileURLToPath(import.meta.url)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment