number-name

v0.1.0
Converts a number to its English name
convert name number text transform word

Number Name

A library to convert numbers to their English names.

Setup Instructions

In the Browser

To use the Number Name Library in your project, download number-name.js or number-name.min.js from GitHub and include it in your HTML file.

<script src="number-name.js"></script>

Alternatively, you can hotlink the online file.

<script src="https://rawgithub.com/fasttime/Number-Name/master/lib/number-name.min.js"></script>

Usage

var name = numberName(12345);
// twelve thousand three hundred forty-five
var name = numberName(-Math.PI);
// minus three point one four one five nine two six five three five eight nine seven nine
var name = numberName(1e42);
// one tredecillion

This is a preliminary documentation and may be subject to change at any time.

Metadata

  • ISC
  • Whatever
  • Francesco Trotta
  • released 1/12/2016

Downloads

Maintainers