mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-11-29 18:48:14 +08:00
7 lines
229 B
JavaScript
7 lines
229 B
JavaScript
|
import url from 'url';
|
||
|
import path from 'path';
|
||
|
|
||
|
/** Get a new path relative to the current module (pass import.meta). */
|
||
|
export const relative = (meta, ...to) =>
|
||
|
path.resolve(path.dirname(url.fileURLToPath(meta.url)), ...to);
|