@meld-ts/core
    Preparing search index...

    Interface PathUtils

    createPathUtils 的返回值接口

    interface PathUtils {
        purge(path: PathInput): string;
        join(...paths: PathInput[]): string;
    }
    Index

    Methods

    Methods

    • 清理单个路径段:去除首尾空白与分隔符,执行 dangerReplace / duplicateReplace。 null / undefined / 空字符串返回 ''

      Parameters

      Returns string

    • 拼接多个路径段,支持 .(跳过)和 ..(消除前一段)。

      Parameters

      Returns string