
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
z-number-format
Advanced tools
npm install z-number-format --save
| Param | Options | Default | Description |
|---|---|---|---|
| number | number string or number | none | which number need to format |
| type | One of ['thousand', 'lakh', 'wan'] | thousand | Define the thousand grouping style, It support three types. thousand style (thousand) : 123,456,789, indian style (lakh) : 12,34,56,789, chinese style (wan) : 1,2345,6789 |
| separator | separator | , | Sets the thousands/wan/laxh separator. |
// es6 module
import numberFormat from 'z-number-format';
// node module
var numberFormat = require('z-number-format');
// cdn Available on unpkg or 74b
<script src="https://unpkg.com/z-number-format@2.0.3/src/index.js"></script>
<script src="https://74b.cc/js/zNumberFormat.js"></script>
Supports typescript
declare global function numberFormat
<script src="https://74b.cc/js/zNumberFormat.js"></script>
numberFormat(123456)
var numberFormat = require('z-number-format');
numberFormat(123456);
Output : 123,456
// format a float
var numberFormat = require('z-number-format');
numberFormat(123456.12345);
Output : 123,456.12345
var numberFormat = require('z-number-format');
numberFormat("123456");
Output : 123,456
var numberFormat = require('z-number-format');
numberFormat(123456,'wan');
Output : 12,3456
var numberFormat = require('z-number-format');
numberFormat(123456,'wan','-');
Output : 12-3456
var numberFormat = require('z-number-format');
numberFormat(3000000,'laxh');
Output : 30,00,000
FAQs
format number [D[
The npm package z-number-format receives a total of 68 weekly downloads. As such, z-number-format popularity was classified as not popular.
We found that z-number-format 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.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.