UNPKG

lean4-code-actions

Version:

Refactorings and snippets for Lean 4

9 lines (5 loc) 284 B
import { basename } from 'path' import { fileURLToPath, URL } from 'url' export const get__filename = fileURLToPath export const get__basename = (url: string | URL) => basename(fileURLToPath(url)) export const get__dirname = (url: string | URL) => fileURLToPath(new URL('.', url))