# multihashes-sync

> Synchronous SHA256, SHA512 multihashes

Latest version **2.0.0** (published 2024-01-03) · (MIT OR Apache-2.0) license · 0 weekly downloads

## Install

```sh
npm install multihashes-sync
pnpm add multihashes-sync
yarn add multihashes-sync
bun add multihashes-sync
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2024-01-03 |
| First published | 2022-09-30 |
| Weekly downloads | 0 |
| License | (MIT OR Apache-2.0) |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 2 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | ukstv |
| Keywords | multiformats, multihashes, ipld, sha256, sha512 |

## Links

- npm: https://www.npmjs.com/package/multihashes-sync
- Repository: https://github.com/ukstv/multihashes-sync
- Homepage: https://github.com/ukstv/multihashes-sync#readme
- Issues: https://github.com/ukstv/multihashes-sync/issues
- npm.io page: https://npm.io/package/multihashes-sync

## Dependencies (2)

- [multiformats](https://npm.io/package/multiformats.md) ^13.0.0
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) ^1.3.3

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2024-01-03
- 0.0.8 (next) — 2022-10-04
- 1.1.3 — 2023-09-08
- 1.1.2 — 2023-09-05
- 1.1.1 — 2023-05-10
- 1.1.0 — 2023-05-10
- 1.0.0 — 2022-10-04
- 0.0.7 — 2022-10-03
- 0.0.6 — 2022-10-03
- 0.0.5 — 2022-09-30
- 0.0.4 — 2022-09-30
- 0.0.3 — 2022-09-30
- 0.0.2 — 2022-09-30
- 0.0.1 — 2022-09-30

## README

# multihashes-sync

> Sync Multihash implementation.

Spiritual successor to deprecated [multihashing](https://github.com/multiformats/js-multihashing).
Compatible with [multiformats](https://github.com/multiformats/js-multiformats).

## Install

```sh
> pnpm install multihashes-sync
```

## Usage

```ts
import { sha256, sha512 } from 'multihashes-sync/sha2'
var bytes = Uint8Array.from([0, 1, 2, 3])

var digest = sha256.digest(bytes)
> console.log(digest)
Digest {
  code: 18,
  size: 32,
  digest: <Buffer 05 4e de c1 d0 21 1f 62 4f ed 0c bc a9 d4 f9 40 0b 0e 49 1c 43 74 2a f2 c5 b0 ab eb f0 c9 90 d8>,
  bytes: Uint8Array(34) [
     18,  32,   5,  78, 222, 193, 208,  33,
     31,  98,  79, 237,  12, 188, 169, 212,
    249,  64,  11,  14,  73,  28,  67, 116,
     42, 242, 197, 176, 171, 235, 240, 201,
    144, 216
  ]
}
```

## License

MIT or Apache-2.0

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