parent
0312588535
commit
837dc3028d
2 changed files with 8 additions and 1 deletions
@ -1,4 +1,5 @@ |
||||
import dsize from './dsize'; |
||||
import dsizeToByte from './dsizeToByte'; |
||||
import toBinaryByte from './toBinaryByte'; |
||||
|
||||
export { dsize, dsizeToByte }; |
||||
export { dsize, dsizeToByte, toBinaryByte }; |
||||
|
@ -0,0 +1,6 @@ |
||||
import { dSizeStr } from 'format-data-size'; |
||||
|
||||
const toBinaryByte = (value: bigint): string | undefined => |
||||
dSizeStr(value, { toUnit: 'ibyte' }); |
||||
|
||||
export default toBinaryByte; |
Loading…
Reference in new issue