@zthun/helpful-fn 9.4.5 → 9.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/file-size/file-size.d.mts +80 -0
- package/dist/index.cjs +580 -1401
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.js +571 -1402
- package/dist/index.js.map +1 -1
- package/dist/number/number-like.d.mts +4 -0
- package/package.json +5 -5
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the total number of bytes for the wanted amount of kibibytes.
|
|
3
|
+
*
|
|
4
|
+
* A kibibyte is 1024 bytes.
|
|
5
|
+
*
|
|
6
|
+
* @param amount -
|
|
7
|
+
* The total number of kibibytes to convert to bytes.
|
|
8
|
+
*
|
|
9
|
+
* @returns
|
|
10
|
+
* The total number of bytes in the given amount of kibibytes.
|
|
11
|
+
*/
|
|
12
|
+
export declare const kibibytes: (amount: number) => number;
|
|
13
|
+
/**
|
|
14
|
+
* @see {@link kibibytes}
|
|
15
|
+
*/
|
|
16
|
+
export declare const kib: (amount: number) => number;
|
|
17
|
+
/**
|
|
18
|
+
* Returns the total number of bytes for the wanted number of mebibytes.
|
|
19
|
+
*
|
|
20
|
+
* A mebibyte is 1024 kibibytes.
|
|
21
|
+
*
|
|
22
|
+
* @param amount -
|
|
23
|
+
* The total amount of mebibytes to convert to bytes.
|
|
24
|
+
*
|
|
25
|
+
* @returns
|
|
26
|
+
* The total number of bytes in the given amount of mebibytes.
|
|
27
|
+
*/
|
|
28
|
+
export declare const mebibytes: (amount: number) => number;
|
|
29
|
+
/**
|
|
30
|
+
* @see {@link mebibytes}
|
|
31
|
+
*/
|
|
32
|
+
export declare const mib: (amount: number) => number;
|
|
33
|
+
/**
|
|
34
|
+
* Returns the total number of bytes for the wanted number of gibibytes.
|
|
35
|
+
*
|
|
36
|
+
* A gibibyte is 1024 mebibytes.
|
|
37
|
+
*
|
|
38
|
+
* @param amount -
|
|
39
|
+
* The total amount of gibibytes to convert to bytes.
|
|
40
|
+
*
|
|
41
|
+
* @returns
|
|
42
|
+
* The total number of bytes in the given amount of gibibytes.
|
|
43
|
+
*/
|
|
44
|
+
export declare const gibibytes: (amount: number) => number;
|
|
45
|
+
/**
|
|
46
|
+
* @see {@link gibibytes}
|
|
47
|
+
*/
|
|
48
|
+
export declare const gib: (amount: number) => number;
|
|
49
|
+
/**
|
|
50
|
+
* Returns the total number of bytes for the wanted number of tebibytes.
|
|
51
|
+
*
|
|
52
|
+
* A tebibyte is 1024 gibibytes.
|
|
53
|
+
*
|
|
54
|
+
* @param amount -
|
|
55
|
+
* The total amount of tebibytes to convert to bytes.
|
|
56
|
+
*
|
|
57
|
+
* @returns
|
|
58
|
+
* The total number of bytes in the given amount of tebibytes.
|
|
59
|
+
*/
|
|
60
|
+
export declare const tebibytes: (amount: number) => number;
|
|
61
|
+
/**
|
|
62
|
+
* @see {@link tebibytes}
|
|
63
|
+
*/
|
|
64
|
+
export declare const tib: (amount: number) => number;
|
|
65
|
+
/**
|
|
66
|
+
* Returns the total number of bytes for the wanted number of pebibytes.
|
|
67
|
+
*
|
|
68
|
+
* A pebibytes is 1024 tebibytes.
|
|
69
|
+
*
|
|
70
|
+
* @param amount -
|
|
71
|
+
* The total amount of pebibytes to convert to bytes.
|
|
72
|
+
*
|
|
73
|
+
* @returns
|
|
74
|
+
* The total number of bytes in the given amount of pebibytes.
|
|
75
|
+
*/
|
|
76
|
+
export declare const pebibytes: (amount: number) => number;
|
|
77
|
+
/**
|
|
78
|
+
* @see {@link pebibytes}
|
|
79
|
+
*/
|
|
80
|
+
export declare const pib: (amount: number) => number;
|