1.1.2 • Published 3 years ago

string-compare v1.1.2

Weekly downloads
21
License
MIT
Repository
github
Last release
3 years ago

String Compare

Used to compare two strings to get the degree of similarity between 0 and 1

Installation

    npm i -s string-compare

or

    yarn add string-compare

Usage

    const { compare } = require('string-compare');

    compare('String 1', 'String 2'); // 0.8

or

    import compare from 'string-compare';

    compare('Hello World', 'helo'); //0.4
    compare('Hello World', 'Helo'); //0.5
    compare('Hello World', 'word'); //0.4
    compare('Hello World', 'Word'); //0.5
1.1.1

3 years ago

1.1.0

3 years ago

1.1.2

3 years ago

1.0.1

6 years ago

1.0.0

6 years ago