# @types/rusha

> TypeScript definitions for rusha

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

## Install

```sh
npm install @types/rusha
pnpm add @types/rusha
yarn add @types/rusha
bun add @types/rusha
```

## 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.8.3 |
| Published | 2023-11-07 |
| First published | 2020-10-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51433 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 0.8.3 (latest) — 2023-11-07
- 0.8.0 (ts4.0) — 2020-10-28
- 0.8.2 — 2023-10-18
- 0.8.1 — 2023-09-27

## README

# Installation
> `npm install --save @types/rusha`

# Summary
This package contains type definitions for rusha (https://github.com/srijs/rusha#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rusha.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rusha/index.d.ts)
````ts
/// <reference types="node" />

interface Hash {
    update(value: string | number[] | ArrayBuffer | Buffer): Hash;
    digest(encoding?: undefined): ArrayBuffer;
    digest(encoding: "hex"): string;
}

interface RushaWorkerRequest {
    id: string;
    data: string | number[] | ArrayBuffer | Buffer | Blob;
}

interface RushaWorkerResponse {
    id: string;
    hash: string;
}

interface RushaWorker extends Worker {
    onmessage: ((this: RushaWorker, res: MessageEvent<RushaWorkerResponse>) => void) | null;
    postMessage(req: RushaWorkerRequest): void;
    terminate(): void;
}

interface Rusha {
    createHash(): Hash;
    createWorker(): RushaWorker;
    disableWorkerBehaviour(): void;
}

declare const Rusha: Rusha;

export = Rusha;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Jacopo Scazzosi](https://github.com/jacoscaz).

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