
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@humanwhocodes/number-to-words
Advanced tools
If you find this useful, please consider supporting my work with a donation.
A function that accepts a positive integer (or zero) and returns the English-language description of the number.
npm install @humanwhocodes/number-to-words --save
# or
yarn add @humanwhocodes/number-to-words
Import into your Node.js project:
// CommonJS
const { numberToWords } = require("@humanwhocodes/number-to-words");
// ESM
import { numberToWords } from "@humanwhocodes/number-to-words";
Import into your Deno project:
import { numberToWords } from "https://cdn.skypack.dev/@humanwhocodes/number-to-words?dts";
It's recommended to import the minified version to save bandwidth:
import { numberToWords } from "https://cdn.skypack.dev/@humanwhocodes/number-to-words?min";
However, you can also import the unminified version for debugging purposes:
import { numberToWords } from "https://cdn.skypack.dev/@humanwhocodes/number-to-words";
After importing, pass any positive integer or zero to numberToWords():
console.log(numberToWords(0)); // "zero"
console.log(numberToWords(10)); // "ten"
console.log(numberToWords(524)); // "five hundred twenty-four"
The numberToWords() function works up to 999 trillion. If you need larger numbers then that, I envy you.
npm install to setup dependenciesnpm test to run testsApache 2.0
FAQs
Converts a number into English words.
We found that @humanwhocodes/number-to-words demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.