
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
Converts number to Vietnamese or English text with customized output.
npm install num2txt
or
yarn add num2txt
import num2txt from 'num2txt'
num2txt('32') // Ba mươi hai
num2txt('32', { lang: 'en' }) // Thirty two
num2txt('32000', { lang: 'vi', currencyUnit: 'đồng' }) // Ba mươi hai nghìn đồng
num2txt('32000', { lang: 'vi', textTransform: 'capitalizeWords' }) // Ba Mươi Hai Nghìn
num2txt('87654321', { lang: 'vi', commaSeparator: true }) // Tám mươi bảy triệu, sáu trăm năm mươi tư nghìn, ba trăm hai mươi mốt
| Option | Type | Default | Description |
|---|---|---|---|
| lang | Language | 'vi' | Output text language, default to Vietnamese; Language = 'vi' | 'en' |
| textTransform | TextTransformProps | 'capitalizeFirstLetter' | Text transform style TextTransformProps = 'capitalizeWords' | 'capitalizeFirstLetter' | 'uppercase' | 'lowercase' |
| currencyUnit | string | undefined | Unit of currency |
| commaSeparator | boolean | false | Comma separator in output text |
FAQs
Converts number to Vietnamese or English text with customized output.
The npm package num2txt receives a total of 87 weekly downloads. As such, num2txt popularity was classified as not popular.
We found that num2txt 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.