Socket
Socket
Sign inDemoInstall

number-to-words

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    number-to-words

Convert numbers into words


Version published
Maintainers
1
Install size
15.5 kB
Created

Readme

Source

Number To Words

Converts numbers into words.

Install

npm install number-to-words

Usage

var numberConverter = require('number-to-words');
numberConverter.toWords(13);
// “thirteen”


// Negative numbers:
numberConverter.toWords(-3);
// “minus three”


// Large numbers:
numberConverter.toWords(9007199254740992);
// “nine quadrillion, seven trillion, one hundred ninety-nine billion, two hundred fifty-four million, seven hundred forty thousand, nine hundred ninety-two”


// As ordinal:
numberConverter.toWords(21, true);
// “twenty-first”

Comments / Bugs

Comments and bug reports are much appreciated. Please enter them on the issues page. Thanks!

Keywords

FAQs

Last updated on 11 Feb 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc