Convert a word to its dialpad number equivalent (e.g. "SPELL" to 77355).
Run yarn add @smockle/phonespell to add phonespell to your project.
$ phonespell "SPELL"import { phonespell } from "@smockle/phonespell";
console.log(phonespell("SPELL"));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.