# super-fast-md5

> Fast md5

Latest version **1.0.3** (published 2024-07-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install super-fast-md5
pnpm add super-fast-md5
yarn add super-fast-md5
bun add super-fast-md5
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2024-07-12 |
| First published | 2022-03-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 36.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | imtaotao |
| Maintainers | rustle |
| Keywords | md5, fast-md5 |

## Links

- npm: https://www.npmjs.com/package/super-fast-md5
- Repository: https://github.com/imtaotao/super-fast-md5
- Homepage: https://github.com/imtaotao/super-fast-md5#readme
- Issues: https://github.com/imtaotao/super-fast-md5/issues
- npm.io page: https://npm.io/package/super-fast-md5

## Dependencies (1)

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

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2024-07-12
- 1.0.2 — 2024-07-05
- 1.0.1 — 2022-06-27
- 1.0.0 — 2022-04-25
- 0.0.7 — 2022-03-10
- 0.0.6 — 2022-03-09
- 0.0.5 — 2022-03-09
- 0.0.4 — 2022-03-09
- 0.0.3 — 2022-03-09
- 0.0.2 — 2022-03-09
- 0.0.1 — 2022-03-09

## README

<div align="center">
<h2>super-fast-md5</h2>

[![NPM version](https://img.shields.io/npm/v/super-fast-md5.svg?color=a1b858&label=)](https://www.npmjs.com/package/super-fast-md5)

</div>

Super fast and super small (`7kb`) `wasm` version of `md5` algorithm, able to use in `browser` and `nodejs`. The implementation comes from [hash-wasm](https://github.com/Daninet/hash-wasm), We simplify the asynchronous syntax to synchronous syntax.


[Online test platform](https://imtaotao.github.io/super-fast-md5/)


### CDN

```html
<script src="https://unpkg.com/super-fast-md5/dist/md5.umd.js"></script>
<script>
  const hash = FastMD5.md5('code');
  console.log(hash);
</script>
```

### NPM

```js
import { md5 } from 'super-fast-md5';

// code -> `string | ArrayBuffer`
const hash = md5('code');
console.log(hash);
```

### Performance

```js
const code = 'abcde'.repeat(200000);

console.time('string');
FastMD5.md5(code);
console.timeEnd('string'); // 10ms

const buffer = new TextEncoder().encode(code);
console.time('buffer');
FastMD5.md5(buffer);
console.timeEnd('buffer'); // 6ms
```

```
./a.js [string] (1024 KiB)
> 10ms

./a.js [buffer] (1024 KiB)
> 6ms
```

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