mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
617 B
TypeScript
22 lines
617 B
TypeScript
import bytes = require('bytes');
|
|
|
|
bytes(104857);
|
|
bytes(104857, { thousandsSeparator: ' ' });
|
|
bytes(104857, { decimalPlaces: 2 });
|
|
bytes(104857, { fixedDecimals: true });
|
|
bytes(104857, { unitSeparator: '-' });
|
|
bytes(104857, { unit: 'GB' });
|
|
bytes(104857, { unit: 'B' });
|
|
|
|
bytes.format(104857);
|
|
bytes.format(104857, { thousandsSeparator: ' ' });
|
|
bytes.format(104857, { decimalPlaces: 2 });
|
|
bytes.format(104857, { fixedDecimals: true });
|
|
bytes.format(104857, { unitSeparator: '-' });
|
|
bytes.format(104857, { unit: 'GB' });
|
|
bytes.format(104857, { unit: 'pb' });
|
|
|
|
bytes('1024kb');
|
|
bytes.parse('1024kb');
|
|
bytes.parse(1024);
|