README
phonespell
Convert a word to its dialpad number equivalent (e.g. "SPELL" to 77355).
Installation
Run yarn add @smockle/phonespell
to add phonespell
to your project.
Usage
Shell
$ phonespell "SPELL"
JavaScript & TypeScript
import { phonespell } from "@smockle/phonespell";
console.log(phonespell("SPELL"));
Testing
phonespell
includes several unit tests. After cloning the phonespell
repo locally, run yarn install
in the project folder to install dependencies. Run yarn test
to execute the tests.