Skip to content

Instantly share code, notes, and snippets.

@johnloy
Created January 29, 2020 17:13
Show Gist options
  • Save johnloy/9e8d6fd115da75d2ae87b995d9ff3f92 to your computer and use it in GitHub Desktop.
Save johnloy/9e8d6fd115da75d2ae87b995d9ff3f92 to your computer and use it in GitHub Desktop.
import { fileURLToPath } from 'url'
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment