UNPKG

abi.js

Version:

[![typescript-icon]][typescript-link] [![license-icon]][license-link] [![status-icon]][status-link] [![ci-icon]][ci-link] [![twitter-icon]][twitter-link]

20 lines (19 loc) 633 B
import type { GlobOptions } from "../_common/glob_to_reg_exp.js"; export type { GlobOptions }; /** * Like normalize(), but doesn't collapse "**\/.." when `globstar` is true. * * @example Usage * ```ts * import { normalizeGlob } from "@std/path/posix/normalize-glob"; * import { assertEquals } from "@std/assert"; * * const path = normalizeGlob("foo/bar/../*", { globstar: true }); * assertEquals(path, "foo/*"); * ``` * * @param glob The glob to normalize. * @param options The options to use. * @returns The normalized path. */ export declare function normalizeGlob(glob: string, { globstar }?: GlobOptions): string;