@types/wrench
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.29 • Public • Published

    Installation

    npm install --save @types/wrench

    Summary

    This package contains type definitions for wrench (https://github.com/ryanmcgrath/wrench-js).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wrench.

    index.d.ts

    // Type definitions for wrench
    // Project: https://github.com/ryanmcgrath/wrench-js
    // Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    // Imported from: https://github.com/soywiz/typescript-node-definitions/wrench.d.ts
    
    
    export declare function readdirSyncRecursive(baseDir: string): string[];
    export declare function rmdirSyncRecursive(path: string, failSilent?: boolean): void;
    export declare function copyDirSyncRecursive(sourceDir: string, newDirLocation: string, opts?: { preserve?: boolean | undefined; }): void;
    export declare function chmodSyncRecursive(sourceDir: string, filemode: number): void;
    export declare function chownSyncRecursive(sourceDir: string, uid: number, gid: number): void;
    export declare function mkdirSyncRecursive(path: string, mode: number): void;
    
    export declare function readdirRecursive(baseDir: string, fn: (err: Error, files: string[]) => void): void;
    export declare function rmdirRecursive(path: string, fn: (err: Error) => void): void;
    export declare function copyDirRecursive(srcDir: string, newDir: string, fn: (err: Error) => void): void;
    
    export declare class LineReader {
        constructor(filename: string, bufferSize?: number);
    
        getBufferAndSetCurrentPosition(position: number): number;
        hasNextLine(): boolean;
        getNextLine(): string;
    }

    Additional Details

    • Last updated: Fri, 02 Jul 2021 18:06:03 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Carlos Ballesteros Velasco.

    Keywords

    none

    Install

    npm i @types/wrench

    DownloadsWeekly Downloads

    891

    Version

    0.0.29

    License

    MIT

    Unpacked Size

    5.32 kB

    Total Files

    4

    Last publish

    Collaborators

    • types