UNPKG

unimported

Version:

Scans your nodejs project folder and shows obsolete files and modules

14 lines (13 loc) 875 B
import { IOptions as GlobOptions } from 'glob'; export declare function exists(path: string, cwd?: string): Promise<boolean>; export declare function deleteFile(path: string, cwd?: string): Promise<void>; export declare function readText(path: string, cwd?: string): Promise<string>; export declare function writeText(path: string, data: string, cwd?: string): Promise<void>; export declare function readJson<T>(path: string, cwd?: string): Promise<T | undefined>; export declare function writeJson(path: string, data: Record<string, any>, cwd?: string): Promise<void>; type ListOptions = GlobOptions & { extensions?: string[]; }; export declare function list(pattern: string, cwd: string, options?: ListOptions): Promise<string[]>; export declare function resolveFilesSync(options: Array<string | undefined>, extensions: string[]): Array<string | undefined>; export {};