blob: 70654cb4eda26b9cb323c1eafdcf86ccea0d8ece (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import { dirname } from 'path';
import { fileURLToPath } from 'url';
/**
* @param {string} url
* @returns {string}
*/
export default function fileURLToDirname(url) {
return dirname(fileURLToPath(url));
}
|