# @types/log-rotate

> TypeScript definitions for log-rotate

Latest version **0.2.2** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/log-rotate
pnpm add @types/log-rotate
yarn add @types/log-rotate
bun add @types/log-rotate
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2023-11-07 |
| First published | 2022-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51370 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/log-rotate
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/log-rotate
- npm.io page: https://npm.io/package/@types/log-rotate

## Recent versions

- 0.2.2 (latest) — 2023-11-07
- 0.2.0 (ts4.2) — 2022-12-12
- 0.2.1 — 2023-10-18

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/log-rotate/index.d.ts)
````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](https://github.com/sandrewTx08).

---
_Source: https://npm.io/package/@types/log-rotate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
