UNPKG

abi.js

Version:

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

17 lines (16 loc) 410 B
/** * Test whether the given string is a glob. * * @example Usage * ```ts * import { isGlob } from "@std/path/is-glob"; * import { assert } from "@std/assert"; * * assert(!isGlob("foo/bar/../baz")); * assert(isGlob("foo/*ar/../baz")); * ``` * * @param str String to test. * @returns `true` if the given string is a glob, otherwise `false` */ export declare function isGlob(str: string): boolean;