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

    1.0.6 • Public • Published

    ochiai-string-similarity

    Finds measure of similarity between two strings using Ochiai coefficient.

    Installation

    npm install ochiai-string-similarity --save
    bower install ochiai-string-similarity --save

    Usage

    Javascript

    var ochiai = require('ochiai-string-similarity');
    var coeff = ochiai.getCoefficient('fdH&tr', 'fdH&tr');
    Output should be '1.0'

    TypeScript

    import { getCoefficient } from 'ochiai-string-similarity';
    console.log(getCoefficient('fdH&tr', 'fdH&tr'))
    Output should be '1.0'

    Test

    npm run test

    Install

    npm i ochiai-string-similarity

    DownloadsWeekly Downloads

    4

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    12.3 kB

    Total Files

    9

    Last publish

    Collaborators

    • varad11