1.0.3 • Published 5 years ago
mobile-keyboard-translator v1.0.3
mobile-keyboard-translator (npm)
:hammer: Translate phone number with letters to only with numbers
Usage
$ npm install mobile-keyboard-translator
$ mobile-keyboard-translator 1-800-FLOWERS
1-800-3569377
Help
$ mobile-keyboard-translator -h
Usage: mobile-keyboard-translator [options] <number>
Options:
-V, --version output the version number
-h, --help output usage information
Purpose
This is mobile keyboard:
-------------------
| 1 | 2 | 3 |
| | ABC | DEF |
-------------------
| 4 | 5 | 6 |
| GHI | JKL | MNO |
-------------------
| 7 | 8 | 9 |
| PQRS| TUV | WXYZ|
-------------------
| * | 0 | # |
| | | |
-------------------
Credits: https://rebased.pl/akademia.html
Tool converts ex. 1-800-FLOWERS
to 1-800-3569377
.
Unit tests
Use Jasmine to setup unit test:
$ npm test
Code coverage
Use Istanbul to get code coverage ratio:
$ npm run coverage
License
The MIT License @ 2017