string-compare
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

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

/string-compare/

    Package Sidebar

    Install

    npm i string-compare

    Weekly Downloads

    263

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    17.7 kB

    Total Files

    13

    Last publish

    Collaborators

    • mykeels