MCPcopy
hub / github.com/donmccurdy/glTF-Transform / formatLong

Function formatLong

packages/cli/src/utils/format.ts:6–8  ·  view source on GitHub ↗
(x: number)

Source from the content-addressed store, hash-verified

4
5const _longFormatter = new Intl.NumberFormat(undefined, { maximumFractionDigits: 0 });
6export function formatLong(x: number): string {
7 return _longFormatter.format(x);
8}
9
10export function formatBytes(bytes: number, decimals = 2): string {
11 if (bytes === 0) return '0 Bytes';

Callers 2

transformMethod · 0.50
formatPropertyReportFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected