Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

number-to-words

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

number-to-words

Convert numbers into words

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
97K
decreased by-62.68%
Maintainers
1
Weekly downloads
 
Created

What is number-to-words?

The number-to-words npm package is a utility for converting numbers into their word equivalents. It supports various functionalities such as converting numbers to words, ordinal words, and ordinal numbers.

What are number-to-words's main functionalities?

Convert number to words

This feature converts a given number into its word equivalent. For example, the number 123 is converted to 'one hundred twenty-three'.

const numberToWords = require('number-to-words');
console.log(numberToWords.toWords(123)); // 'one hundred twenty-three'

Convert number to ordinal words

This feature converts a given number into its ordinal word equivalent. For example, the number 123 is converted to 'one hundred twenty-third'.

const numberToWords = require('number-to-words');
console.log(numberToWords.toWordsOrdinal(123)); // 'one hundred twenty-third'

Convert number to ordinal number

This feature converts a given number into its ordinal number equivalent. For example, the number 123 is converted to '123rd'.

const numberToWords = require('number-to-words');
console.log(numberToWords.toOrdinal(123)); // '123rd'

Other packages similar to number-to-words

Keywords

FAQs

Package last updated on 11 Feb 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc