UNPKG

1.77 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/wrench`
3
4# Summary
5This package contains type definitions for wrench (https://github.com/ryanmcgrath/wrench-js).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wrench.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wrench/index.d.ts)
10````ts
11// Imported from: https://github.com/soywiz/typescript-node-definitions/wrench.d.ts
12
13export declare function readdirSyncRecursive(baseDir: string): string[];
14export declare function rmdirSyncRecursive(path: string, failSilent?: boolean): void;
15export declare function copyDirSyncRecursive(
16 sourceDir: string,
17 newDirLocation: string,
18 opts?: { preserve?: boolean | undefined },
19): void;
20export declare function chmodSyncRecursive(sourceDir: string, filemode: number): void;
21export declare function chownSyncRecursive(sourceDir: string, uid: number, gid: number): void;
22export declare function mkdirSyncRecursive(path: string, mode: number): void;
23
24export declare function readdirRecursive(baseDir: string, fn: (err: Error, files: string[]) => void): void;
25export declare function rmdirRecursive(path: string, fn: (err: Error) => void): void;
26export declare function copyDirRecursive(srcDir: string, newDir: string, fn: (err: Error) => void): void;
27
28export declare class LineReader {
29 constructor(filename: string, bufferSize?: number);
30
31 getBufferAndSetCurrentPosition(position: number): number;
32 hasNextLine(): boolean;
33 getNextLine(): string;
34}
35
36````
37
38### Additional Details
39 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
40 * Dependencies: none
41
42# Credits
43These definitions were written by [Carlos Ballesteros Velasco](https://github.com/soywiz).
44
\No newline at end of file