@smockle/phonespelldeprecated

Convert a word to its dialpad number equivalent

Usage no npm install needed!

<script type="module">
  import smocklePhonespell from 'https://cdn.skypack.dev/@smockle/phonespell';
</script>

README

phonespell

npm Publish Workflow codecov Dependabot Status

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.