1.0.1 • Published 5 years ago

signal-ai-code-challenge v1.0.1

Weekly downloads
2
License
ISC
Repository
-
Last release
5 years ago

Signal-AI Code Challenge

Build Status

Convert an integer from 1 to 1000, inclusive, to it's grammatically correct English phrase.

Install

npm install --save signal-ai-code-challenge

Usage

const numberToWords = require('signal-ai-code-challenge');

console.log(numberToWords(1));
// result "One"

console.log(numberToWords(151));
// result "One Hundred and Fifty-One"

Development

To start development, first install npm dependencies

npm install

To run tests

npm run test