UNPKG

lazy-js-utils

Version:

A collection of lazy-loaded JavaScript utilities for efficient development

16 lines (14 loc) 394 B
import { isAbsolute$1 as isAbsolute } from "./parallel-DHAKJPw_.js"; import process from "node:process"; import path from "node:path"; //#region src/to/toAbsolutePath.ts /** * * @param { string } url 路径 * @returns 绝对路径 */ function toAbsolutePath(url) { return isAbsolute(url) ? url : path.resolve(process.cwd(), url); } //#endregion export { toAbsolutePath as toAbsolutePath$1 };