UNPKG

desm

Version:

get the file directory from import.meta.url

6 lines (5 loc) 279 B
export default urlDirname; declare function urlDirname(url: string): string; declare function urlJoin(url: string, ...str: string[]): string; declare function fileURLToPath(url: string | URL): string; export { fileURLToPath as filename, urlJoin as join, urlDirname as dirname };