0.2.34 • Published 6 months ago

@types/logrotate-stream v0.2.34

Weekly downloads
223
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/logrotate-stream

Summary

This package contains type definitions for logrotate-stream (https://github.com/dstokes/logrotate-stream).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/logrotate-stream.

index.d.ts

// Type definitions for logrotate-stream 0.2.8
// Project: https://github.com/dstokes/logrotate-stream
// Definitions by: Rogier Schouten <https://github.com/rogierschouten>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

import stream = require("stream");

// wrapper to be able to use "export =" while also exporting the Options interface
declare namespace logrotateStream {

    /**
     * Options object for the exported function.
     */
    export interface Options {
        /**
         * The file log file to write data to.
         */
        file: string;
        /**
         * The max file size of a log before rotation occurs. Supports 1024, 1k, 1m, 1g
         */
        size: string | number;
        /**
         * The number of rotated log files to keep (including the primary log file). Additional logs are deleted no rotation.
         */
        keep: number;
        /**
         * Optionally compress rotated files with gzip.
         */
        compress?: boolean | undefined;
    }

}

/**
 * Create a rotating log stream.
 * @returns a writable stream to a rotating log file
 */
declare function logrotateStream(opts: logrotateStream.Options): stream.Writable;


export = logrotateStream;

Additional Details

  • Last updated: Fri, 01 Oct 2021 23:01:36 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Rogier Schouten.

0.2.34

6 months ago

0.2.33

7 months ago

0.2.32

8 months ago

0.2.31

3 years ago

0.2.30

3 years ago

0.2.29

8 years ago

0.2.28

8 years ago

0.2.27-alpha

8 years ago

0.2.26-alpha

8 years ago

0.2.25-alpha

8 years ago

0.2.24-alpha

8 years ago

0.2.23-alpha

8 years ago

0.2.22-alpha

8 years ago

0.2.21-alpha

8 years ago

0.2.16-alpha

8 years ago

0.2.15-alpha

8 years ago