Skip to content
This repository was archived by the owner on Sep 29, 2020. It is now read-only.

smockle-archive/phonespell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

272 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Convert a word to its dialpad number equivalent

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors