ktfile 1.0.2 → 1.0.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ktfile",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A powerful, cross-platform file system library for JavaScript/TypeScript that provides both synchronous and asynchronous APIs with a clean, object-oriented interface.",
|
|
5
5
|
"main": "index.min.js",
|
|
6
6
|
"types": "types/ktfile.d.ts",
|
|
@@ -305,8 +305,8 @@ export declare class FileAsync extends IFile<IAsyncFS> {
|
|
|
305
305
|
* This is calculated by dividing the size in bytes by 1024 * 1024.
|
|
306
306
|
* If the file does not exist, it returns null.
|
|
307
307
|
* @example
|
|
308
|
-
* const file = new
|
|
309
|
-
* console.log("File size:", file.sizeMB, "MB");
|
|
308
|
+
* const file = new FileAsync("path/to/file.txt");
|
|
309
|
+
* console.log("File size:", await file.sizeMB(), "MB");
|
|
310
310
|
* @returns {Promise<number | null>} The size of the file in megabytes (MB), or null if the file does not exist.
|
|
311
311
|
*/
|
|
312
312
|
sizeMB(): Promise<number | null>;
|
|
@@ -315,8 +315,8 @@ export declare class FileAsync extends IFile<IAsyncFS> {
|
|
|
315
315
|
* This is calculated by dividing the size in bytes by 1024 * 1024 * 1024.
|
|
316
316
|
* If the file does not exist, it returns null.
|
|
317
317
|
* @example
|
|
318
|
-
* const file = new
|
|
319
|
-
* console.log("File size:", file.sizeGB, "GB");
|
|
318
|
+
* const file = new FileAsync("path/to/file.txt");
|
|
319
|
+
* console.log("File size:", await file.sizeGB(), "GB");
|
|
320
320
|
* @returns {Promise<number | null>} The size of the file in gigabytes (GB), or null if the file does not exist.
|
|
321
321
|
*/
|
|
322
322
|
sizeGB(): Promise<number | null>;
|