UNPKG
@roflsec/dice-coefficient
Version:
latest (1.0.1)
1.0.1
1.0.0
Sørensen–Dice coefficient for strings with CLI
@roflsec/dice-coefficient
/
README.md
11 lines
(7 loc)
•
294 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
# dice-coefficient
Sørensen–Dice coefficient
for
strings,
with
CLI
and
Node.js export.
## Usage CLI
dice-coefficient
"string1"
"string2"
[--raw|-r] [--percent|-p]
## Usage Node.js
const
{ diceCoefficient } = require(
'dice-coefficient'
); console.log(diceCoefficient(
"Context"
,
"Contact"
));