A very simple program to convert a vanity phone number to numeric value.
It strips off any non alpha-numeric characters, and replaces the alphabets to numbers as below.
|letter||replaced to number|
npm install whatvanity --save
var vanityToNum = ;var vanityPhNum = '1800TESTING';var numericPhNum = ;
- 2.1.0 Added code coverage via codecov.io
- 2.0.0 Updated logic, added ci via Travis-CI.org
- 1.0.0 Initial Release
This code has been released under the UNLICENSE.