8 lines
183 B
JavaScript
8 lines
183 B
JavaScript
import {fileURLToPath} from 'node:url';
|
|
|
|
export function toPath(urlOrPath) {
|
|
return urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
|
|
}
|
|
|
|
export * from './default.js';
|