npm.io
0.2.2 • Published 2 years ago

@types/log-rotate

Licence
MIT
Version
0.2.2
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/log-rotate

Summary

This package contains type definitions for log-rotate (https://github.com/dstokes/log-rotate#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/log-rotate.

index.d.ts

declare function logRotate(file: string, options: logRotate.Options, cb: logRotate.Callback): void;
declare function logRotate(file: string, cb: logRotate.Callback): void;
declare namespace logRotate {
    type Callback = (err: Error | null, rotated?: string) => void;
    interface Options {
        /**
         * Compress rotated files with gzip
         */
        compress?: boolean;
        /**
         * Move a log file while incrementing existing indexed / rotated logs
         */
        count?: number;
        matcher?: RegExp;
    }
}

export = logRotate;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0938 GMT
  • Dependencies: none

Credits

These definitions were written by sandrewtx08.