MCPcopy Create free account
hub / github.com/zxlie/FeHelper / getAllConversions

Function getAllConversions

apps/byte-unit/byte-utils.js:34–39  ·  view source on GitHub ↗
(value, fromUnit)

Source from the content-addressed store, hash-verified

32}
33
34export function getAllConversions(value, fromUnit) {
35 return BYTE_UNITS.map((unit) => ({
36 unit,
37 value: formatConvertedValue(convertBytes(value, fromUnit, unit))
38 }));
39}

Callers 2

index.jsFile · 0.90
byte-utils.test.jsFile · 0.90

Calls 2

formatConvertedValueFunction · 0.85
convertBytesFunction · 0.85

Tested by

no test coverage detected