Skip to content

wangxiaokou/md5-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

md5-js

md5 library and cli tools for javascript

CLI Installation

npm i -g md5-js

CLI Usage

md5 example.txt
md5 "hello world"

Script Usage

<script src="md5-min.js"></script>
<script>
    var hash = md5('hellow world');
    alert(hash);
</script>

Node.js Usage

var fs = require('fs');
var md5 = require('md5-js');

console.log(md5('hellow world'));

fs.readFile('example.txt', function(err, buf) {
  console.log(md5(buf));
});

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.0%
  • Shell 2.0%