Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
An simple module to convert numbers to words for South Asian numbering system. e.g. Two crore four lakh
npm i num-words
1 -> one
12 -> twelve
123 -> one hundred and twenty three
1234 -> one thousand two hundred and thirty four
12345 -> twelve thousand three hundred and forty five
123456 -> one lakh twenty three thousand four hundred and fifty six
const numWords = require('num-words')
const amountInWords = numWords(12345) // twelve thousand three hundred and forty five
Note: This module only supports 9 digits input. A typical usecase for such convertion is in tax invoices or charts etc. For that more than 9 digits input is not very common (and also not very readable).
In case you notice a bug, please open an issue mentioning the input that has caused an incorrect conversion.
FAQs
Convert digits to words
The npm package num-words receives a total of 9,048 weekly downloads. As such, num-words popularity was classified as popular.
We found that num-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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.