npm

Need private packages and team management tools?Check out npm Orgs. »

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

5

version

0.1.2

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability