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

0.2.2 • Public • Published

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 09:09:38 GMT
  • Dependencies: none

Credits

These definitions were written by sandrewtx08.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/log-rotate

Weekly Downloads

24

Version

0.2.2

License

MIT

Unpacked Size

3.69 kB

Total Files

5

Last publish

Collaborators

  • types