Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.
/ phonespell Public archive

Convert a word to its dialpad number equivalent

License

Notifications You must be signed in to change notification settings

smockle-archive/phonespell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.