# @types/sha512-universal

> TypeScript definitions for sha512-universal

Latest version **1.2.4** (published 2023-11-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/sha512-universal
pnpm add @types/sha512-universal
yarn add @types/sha512-universal
bun add @types/sha512-universal
```

## 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.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.2.4 |
| Published | 2023-11-21 |
| First published | 2022-11-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51446 |
| Maintainers | types |

## Links

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

## Recent versions

- 1.2.4 (latest) — 2023-11-21
- 1.2.0 (ts4.1) — 2022-11-08
- 1.2.3 — 2023-11-07
- 1.2.2 — 2023-10-18
- 1.2.1 — 2023-09-25

## README

# Installation
> `npm install --save @types/sha512-universal`

# Summary
This package contains type definitions for sha512-universal (https://github.com/chm-diederichs/sha512-universal#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sha512-universal.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sha512-universal/index.d.ts)
````ts
export = Sha512;

declare function Sha512(): Sha512.Sha512;

declare namespace Sha512 {
    const WASM_SUPPORTED: boolean;
    const WASM_LOADED: boolean;
    const SHA512_BYTES: 64;
    const HMAC: HMACCtor | undefined;

    function ready(cb: () => void): void;

    interface Sha512 {
        update(input: Uint8Array | readonly number[]): this;
        update(input: string, encoding?: string): this;
        digest<TBuf extends Uint8Array = Uint8Array>(enc?: TBuf, offset?: number): TBuf;
        digest(enc: string): string;
    }

    interface HMACCtor {
        (key: Uint8Array): HMAC;
        new(key: Uint8Array): HMAC;
    }

    interface HMAC {
        update(input: Uint8Array | readonly number[]): this;
        update(input: string, encoding?: string): this;
        digest<TBuf extends Uint8Array = Uint8Array>(enc?: TBuf, offset?: number): TBuf;
        digest(enc: string): string;
    }
}

````

### Additional Details
 * Last updated: Mon, 20 Nov 2023 23:36:24 GMT
 * Dependencies: none

# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender).

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