
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@fhaglund/largenum
Advanced tools
Transforms large numbers into more easily digestible english.
const {largenum} = require('largenum');
console.log(largenum(64e63));
// '64 vigintillion'
console.log(largenum(1e100));
// '1 googol'
console.log(largenum(1e100, {exclusions: [1e100]}));
// '10 duotrigintillion'
console.log(largenum(14e63, {max: 1e12}));
// '14 thousand trillion trillion trillion trillion trillion'
console.log(largenum(22e6, {threshold: 1e9}));
// '22,000,000'
largenum accepts an options object as its second parameter. The available options are as follows.
| Option | Default | Description |
|---|---|---|
| max | undefined | Sets the largest allowed name to be used. If you wanted to limit conversions to use trillions as the largest unit, you would pass max: 1e12. This would make 1e30 convert to "1 million trillion trillion" instead of "1 nonillion". |
| threshold | undefined | Sets the lower limit for where conversions will be applied at all. Numbers below the threshold will convert to digits with thousands separators (i.e. 1e6 will convert to "1,000,000" if you have threshold set to at least 1e6 + 1). |
| exclusions | [] | Exclude any names you dont want to be used. To exclude the googol, for example, you would include 1e100 in the list. |
FAQs
Transforms large numbers into more easily digestible english
We found that @fhaglund/largenum 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.