Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 594 Bytes

readme.md

File metadata and controls

34 lines (22 loc) · 594 Bytes

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