# @types/sha256

> TypeScript definitions for sha256

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

## Install

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

## 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.2.2 |
| Published | 2023-11-07 |
| First published | 2018-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51446 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.2.2 (latest) — 2023-11-07
- 0.2.0 (ts2.0) — 2018-09-27
- 0.2.1 — 2023-10-18

## README

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

type Message = string | Buffer | number[];

interface Sha256 {
    (message: Message, options?: { asString: true }): string;
    (message: Message, options: { asBytes: true }): number[];
}

interface Sha256WithX2 extends Sha256 {
    x2: Sha256;
}

declare const sha256: Sha256WithX2;

export = sha256;

export as namespace sha256;

````

### 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 [Nathan Hardy](https://github.com/nhardy).

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