A utility to compare JSON string values using Levenshtein similarity
npm install json-string-matcherfastest-levenshtein for performance
bash
npm install json-string-matcher
`
š¦ example
import { matchJsonValues } from "json-string-matcher";
const jsonA = { a: "YOU", b: "Okay", c: "ohyess" };
const jsonB = { a: "you", b: "oke" };
const similarity = matchJsonValues(jsonA, jsonB);
console.log(Similarity: ${similarity}%`);