Neapolitan Pizza Margherita
Wondering what’s next for npm?Check out our public roadmap! »

md5-nodejs

1.0.3 • Public • Published

md5-nodejs

A node module that hashes data to MD5

Install

npm install md5-nodejs

Usage

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

Hash Anything!

Here are some examples

Hash strings

const hash = md5('string to hash');

Hash buffers

const hash = md5(Buffer.from('carmine'));

Hash TypedArrays

const int16Array = new Int16Array(2);
int16Array[0] = 42;
const hash = md5(int16Array);

Hash objects

const hash = md5({
    name: 'carmine'
});

Hash arrays

const hash = md5(['hash', 'this', 'array']);

Hash primitives

const hash = md5(3.14159265359);
const hash = md5(true);

License

MIT

Install

npm i md5-nodejs

DownloadsWeekly Downloads

468

Version

1.0.3

License

MIT

Unpacked Size

136 kB

Total Files

6

Last publish

Collaborators

  • avatar