UNPKG
node-simhash-mod
Version:
latest (0.2.0)
0.2.0
0.1.1
Command Line tool that compares two text files using simhash
gitlab.com/ludan/node-simhash-mod
node-simhash-mod
/
example.js
13 lines
(6 loc)
•
249 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
var
simhash =
require
(
'./lib/simhash'
);
//const t1 = `bla bli blu blo`;
//const t2= `tata titi tutu toto`;
// simhash.summary(t1, t2);
const
sim = simhash.
similarity
(
14151591466629948808n
,
14800673312679781773n
);
console
.
log
(sim);