UNPKG
ka-ching
Version:
latest (0.4.2)
0.4.2
0.4.1
0.4.0
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.2
0.0.1
0.0.0
A caching module for streams
github.com/Floby/node-ka-ching
Floby/node-ka-ching
ka-ching
/
lib
/
hashSum.js
8 lines
(6 loc)
•
164 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
var
crypto =
require
(
'crypto'
); module.exports =
function
(
string
)
{
var
hash = crypto.
createHash
(
'md5'
); hash.
update
(
string
);
return
hash.
digest
(
'hex'
); };