UNPKG

@socketsecurity/lib

Version:

Core utilities and infrastructure for Socket.dev security tools

47 lines (46 loc) 1.31 kB
// Type definitions type Pattern = string; interface FastGlobOptions { absolute?: boolean; baseNameMatch?: boolean; braceExpansion?: boolean; caseSensitiveMatch?: boolean; concurrency?: number; cwd?: string; deep?: number; dot?: boolean; extglob?: boolean; followSymbolicLinks?: boolean; fs?: unknown; globstar?: boolean; ignore?: string[]; ignoreFiles?: string[]; markDirectories?: boolean; objectMode?: boolean; onlyDirectories?: boolean; onlyFiles?: boolean; stats?: boolean; suppressErrors?: boolean; throwErrorOnBrokenSymbolicLink?: boolean; unique?: boolean; } export interface GlobOptions extends FastGlobOptions { ignoreOriginals?: boolean; recursive?: boolean; } export type { Pattern, FastGlobOptions }; export declare const defaultIgnore: readonly string[]; /** * Create a stream of license file paths matching glob patterns. */ /*@__NO_SIDE_EFFECTS__*/ export declare function globStreamLicenses(dirname: string, options?: GlobOptions): NodeJS.ReadableStream; /** * Get a cached glob matcher function. */ /*@__NO_SIDE_EFFECTS__*/ export declare function getGlobMatcher(glob: Pattern | Pattern[], options?: { dot?: boolean; nocase?: boolean; ignore?: string[]; }): (path: string) => boolean;