Created
December 13, 2023 08:00
-
-
Save inwardmovement/90d66648e83cd296842cf4c19b57ce50 to your computer and use it in GitHub Desktop.
Node __dirname ESM
This file contains 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
import { mkdir, writeFile } from "node:fs" | |
import { fileURLToPath } from "node:url" | |
import path from "node:path" | |
const __dirname = path.dirname(fileURLToPath(import.meta.url)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment