@types/byte-size
Version:
TypeScript definitions for byte-size
42 lines (32 loc) • 1.09 kB
Markdown
byte-size`
This package contains type definitions for byte-size (https://github.com/75lb/byte-size#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/byte-size.
````ts
export interface ByteSizeOptions {
precision?: number;
units?: string;
customUnits?: object;
toStringFn?: () => string;
locale?: string | string[];
}
export interface ByteSizeResult {
value: string;
unit: string;
long: string;
toString: () => string;
}
declare function byteSize(bytes: number, options?: ByteSizeOptions): ByteSizeResult;
declare namespace byteSize {
function defaultOptions(options: ByteSizeOptions): void;
}
export default byteSize;
````
* Last updated: Mon, 06 Nov 2023 22:41:05 GMT
* Dependencies: none
These definitions were written by [lntel](https://github.com/lntel).
> `npm install --save @types/