Notwithstanding Previous Misdemeanors
    Wondering what’s next for npm?Check out our public roadmap! »

    soundex-encode

    0.1.2 • Public • Published

    Soundex Encoder

    A simple library to encode strings using the Soundex algorithm.

    var Soundex = require('soundex-encode')
     
    // Standard 3-digit
    Soundex('Battlestar') // B342
     
    // MySQL (at least in 5.6...)
    Soundex('Battlestar', {mysql:true}) // B34236
     
    // Un-zero-finished hashes
    Soundex('Jackson', {zeroed:false}) // J25

    Notes

    • Could be errors, need to test more extensively.
    • Plan to add a distance comparator for computing the similarity between two hashes.

    Keywords

    none

    Install

    npm i soundex-encode

    DownloadsWeekly Downloads

    4

    Version

    0.1.2

    License

    none

    Last publish

    Collaborators

    • avatar