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

    @jollie/soundex-fr

    1.0.8 • Public • Published

    Version Licence Build Coverage Downloads

    soundex-fr

    Soundex function adapted for french phonetics
    Compliant, optimized and small package to get soundex key

    For mapping used see https://fr.wikipedia.org/wiki/Soundex#Description

    Install

    yarn add @jollie/soundex-fr

    or

    npm install @jollie/soundex-fr

    Usage

    import soundex from '@jollie/soundex-fr';
    
    // Test equal phonetics
    if (soundex('Robert') === soundex('Rupert')) {
      console.log('Equal soundex');
    } else {
      console.log('Different soundex');
    }
    
    // Output : Equal soundex

    Params

    soundex(str, length);
    Prop Type Default Note
    str string Required field Input value
    length int 4 Length of soundex key

    Return value

    Soundex key of length chars

    Install

    npm i @jollie/soundex-fr

    DownloadsWeekly Downloads

    20

    Version

    1.0.8

    License

    MIT

    Unpacked Size

    5.08 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar