fuzzy-string-matching

Get the degree of resemblance between two strings

Usage no npm install needed!

<script type="module">
  import fuzzyStringMatching from 'https://cdn.skypack.dev/fuzzy-string-matching';
</script>

README

fuzzy-string-matching Build Status

Get the degree of resemblance between two strings

Install

$ npm install --save fuzzy-string-matching

Usage

const fsm = require('fuzzy-string-matching');

fsm('Abc', 'aBC'); // case sensitive = false
//=> 1

fsm('Abc', 'aBC', true); // case sensitive = true
//=> 0

fsm('abcdef', 'arcdet');
//=> 0.444444

Testing

$ npm test

License

MIT © EL AZZABI Ahmed