Skip to content

Instantly share code, notes, and snippets.

@techeverri
Created April 12, 2022 18:16
Show Gist options
  • Save techeverri/8b719facf2a71a752ce730af61908d2e to your computer and use it in GitHub Desktop.
Save techeverri/8b719facf2a71a752ce730af61908d2e to your computer and use it in GitHub Desktop.
#!/usr/bin/env node
import path from "path";
import url from "url";
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
console.log({ __dirname });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment