keep-a-changelog
Version:
Node package to parse and generate changelogs following the [keepachangelog](https://keepachangelog.com/) format.
22 lines • 633 B
TypeScript
/**
* Verifies whether provided path is absolute.
*
* @example Usage
* ```ts
* import { isAbsolute } from "@std/path/is-absolute";
* import { assert, assertFalse } from "@std/assert";
*
* if (Deno.build.os === "windows") {
* assert(isAbsolute("C:\\home\\foo"));
* assertFalse(isAbsolute("home\\foo"));
* } else {
* assert(isAbsolute("/home/foo"));
* assertFalse(isAbsolute("home/foo"));
* }
* ```
*
* @param path Path to be verified as absolute.
* @returns `true` if path is absolute, `false` otherwise
*/
export declare function isAbsolute(path: string): boolean;
//# sourceMappingURL=is_absolute.d.ts.map