@reliverse/rematch
Version:
@reliverse/rematch is a high-performance minimal glob matcher, with micromatch-level power, zepto-level size, and reliverse-grade dx.
25 lines (24 loc) • 973 B
TypeScript
export declare const isObject: (val: any) => boolean;
export declare const hasRegexChars: (str: any) => boolean;
export declare const isRegexChar: (str: any) => boolean;
export declare const escapeRegex: (str: any) => any;
export declare const toPosixSlashes: (str: any) => any;
export declare const isWindows: () => boolean;
export declare const removeBackslashes: (str: any) => any;
export declare const escapeLast: (input: any, char: any, lastIdx: any) => any;
type RemovePrefixState = {
prefix?: string;
};
type WrapOutputState = {
negated?: boolean;
};
type WrapOutputOptions = {
contains?: boolean;
};
export declare const removePrefix: (input: string, state?: RemovePrefixState) => string;
export declare const wrapOutput: (input: string, state?: WrapOutputState, options?: WrapOutputOptions) => string;
type BasenameOptions = {
windows?: boolean;
};
export declare const basename: (path: string, { windows }?: BasenameOptions) => string;
export {};