1.1.2 • Published 4 years ago

string-compare v1.1.2

Weekly downloads
21
License
MIT
Repository
github
Last release
4 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

4 years ago

1.1.0

4 years ago

1.1.2

4 years ago

1.0.1

7 years ago

1.0.0

7 years ago