Have ideas to improve npm?Join in the discussion! »

    @extra-string/jaro-distance

    1.1.3 • Public • Published

    Get Jaro distance between strings (rosettacode).

    const jaroDistance = require('@extra-string/jaro-distance');
    // jaroDistance(<string-1>, <string-2>)
     
    jaroDistance('no', 'match');
    // 0
    jaroDistance('teapot', 'teapot');
    // 1
    jaroDistance('jellyfish', 'smellyfish');
    // 0.8962962962962964

    extra-string

    Install

    npm i @extra-string/jaro-distance

    DownloadsWeekly Downloads

    4

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    3.2 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar