Skip to content
Convert a word to its dialpad number equivalent
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
src
.gitignore
LICENSE
README.md
package.json
tsconfig.json
yarn.lock

README.md

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.

You can’t perform that action at this time.