MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / formatSizesStr

Function formatSizesStr

src/options/utils/index.js:54–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 '@resource',
53];
54export const formatSizesStr = str => str
55 .slice(0, -1) // drop space
56 .replace(/\x20/g, '\xA0') // prevent wrapping for big space-separated numbers
57 .replace(/[^B]$/gm, '$&B'); // add B to units e.g.g M -> MB
58
59export let K_SAVE; // deduced from the current CodeMirror keymap
60

Callers 1

initScriptFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected