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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    8
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    8
  • 0.1.1
    0

Package Sidebar

Install

npm i soundex-encode

Weekly Downloads

8

Version

0.1.2

License

none

Last publish

Collaborators

  • derrickpelletier