# @types/simple-lru

> TypeScript definitions for simple-lru

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

## Install

```sh
npm install @types/simple-lru
pnpm add @types/simple-lru
yarn add @types/simple-lru
bun add @types/simple-lru
```

## Health

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

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2023-11-07 |
| First published | 2018-01-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

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

## Recent versions

- 0.0.2 (latest) — 2023-11-07
- 0.0.0 (ts2.6) — 2018-01-11
- 0.0.1 — 2023-10-18

## README

# Installation
> `npm install --save @types/simple-lru`

# Summary
This package contains type definitions for simple-lru (https://github.com/smagch/simple-lru).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/simple-lru.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/simple-lru/index.d.ts)
````ts
declare class SimpleLRU<K, V> {
    constructor(max: number);
    del(key: K): V | undefined;
    get(key: K): V | undefined;
    has(key: K): boolean;
    keys(): K[];
    length(): number;
    max(max?: number): number;
    peek(key: K): V | undefined;
    reset(): void;
    set(key: K, val: V): void;
    static version: string;
}

export = SimpleLRU;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [NN](https://github.com/NN---).

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