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.

Readme

Keywords

none

Package Sidebar

Install

npm i soundex-encode

Weekly Downloads

5

Version

0.1.2

License

none

Last publish

Collaborators

  • derrickpelletier