number-name

Converts a number to its English name

Usage no npm install needed!

<script type="module">
  import numberName from 'https://cdn.skypack.dev/number-name';
</script>

README

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.