1 | # Installation
|
2 | > `npm install --save @types/wrench`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for wrench (https://github.com/ryanmcgrath/wrench-js).
|
6 |
|
7 | # Details
|
8 | Files 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 |
|
13 | export declare function readdirSyncRecursive(baseDir: string): string[];
|
14 | export declare function rmdirSyncRecursive(path: string, failSilent?: boolean): void;
|
15 | export declare function copyDirSyncRecursive(
|
16 | sourceDir: string,
|
17 | newDirLocation: string,
|
18 | opts?: { preserve?: boolean | undefined },
|
19 | ): void;
|
20 | export declare function chmodSyncRecursive(sourceDir: string, filemode: number): void;
|
21 | export declare function chownSyncRecursive(sourceDir: string, uid: number, gid: number): void;
|
22 | export declare function mkdirSyncRecursive(path: string, mode: number): void;
|
23 |
|
24 | export declare function readdirRecursive(baseDir: string, fn: (err: Error, files: string[]) => void): void;
|
25 | export declare function rmdirRecursive(path: string, fn: (err: Error) => void): void;
|
26 | export declare function copyDirRecursive(srcDir: string, newDir: string, fn: (err: Error) => void): void;
|
27 |
|
28 | export 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
|
43 | These definitions were written by [Carlos Ballesteros Velasco](https://github.com/soywiz).
|
44 |
|
\ | No newline at end of file |