# md5-nodejs

> Utility to hash data to MD5 and/or convert MD5 hashes to UUID

Latest version **1.0.3** (published 2018-11-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install md5-nodejs
pnpm add md5-nodejs
yarn add md5-nodejs
bun add md5-nodejs
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-11-19 |
| First published | 2018-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 132.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Carmine M. DiMascio |
| Maintainers | cdimascio |
| Keywords | md5, uuid, hash, nodejs |

## Links

- npm: https://www.npmjs.com/package/md5-nodejs
- Repository: https://github.com/cdimascio/md5-node
- Homepage: https://github.com/cdimascio/md5-node#readme
- Issues: https://github.com/cdimascio/md5-node/issues
- npm.io page: https://npm.io/package/md5-nodejs

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2018-11-19
- 1.0.2 — 2018-11-02
- 1.0.1 — 2018-11-02

## README

# md5-nodejs

![](https://travis-ci.org/cdimascio/md5-nodejs.svg?branch=master)
![](https://img.shields.io/badge/license-MIT-blue.svg)

A node module that hashes data to MD5

<p align="center">
<img src="https://raw.githubusercontent.com/cdimascio/md5-node/master/assets/md5-nodejs.png" width="350px">
</p>

## Install

```shell
npm install md5-nodejs
```

## Usage

```javascript
const md5 = require('md5-nodejs');
const hash = md5('data to hash');
```

### Hash Anything!
Here are some examples

#### Hash strings
```javascript
const hash = md5('string to hash');
```
#### Hash buffers
```javascript
const hash = md5(Buffer.from('carmine'));
```
#### Hash TypedArrays
```javascript
const int16Array = new Int16Array(2);
int16Array[0] = 42;
const hash = md5(int16Array);
```

#### Hash objects
```javascript
const hash = md5({
    name: 'carmine'
});
```

#### Hash arrays
```javascript
const hash = md5(['hash', 'this', 'array']);
```

#### Hash primitives
```javascript
const hash = md5(3.14159265359);
const hash = md5(true);
```


## License
[MIT](LICENSE)

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