UNPKG

react-native-asset

Version:

Linking and unlinking of assets in your react-native app, works for fonts and sounds

17 lines 525 B
/** * Return the directory path of a `path`. * * @example Usage * ```ts * import { dirname } from "@std/path/windows/dirname"; * import { assertEquals } from "@std/assert"; * * assertEquals(dirname("C:\\foo\\bar\\baz.ext"), "C:\\foo\\bar"); * assertEquals(dirname(new URL("file:///C:/foo/bar/baz.ext")), "C:\\foo\\bar"); * ``` * * @param path The path to get the directory from. * @returns The directory path. */ export declare function dirname(path: string | URL): string; //# sourceMappingURL=dirname.d.ts.map