mobile-keyboard-translator

1.0.3 • Public • Published

mobile-keyboard-translator (npm)

npm version Travis Coverage Status

🔨 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

Package Sidebar

Install

npm i mobile-keyboard-translator

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

5.46 kB

Total Files

4

Last publish

Collaborators

  • piecioshka