UNPKG

go-get-folder-size

Version:

Get the size of a folder by recursively iterating through all its sub(files && folders). Use go, so high-speed

12 lines (11 loc) 369 B
import "../wasm/polyfill.js"; import "../wasm/wasm_exec.js"; interface Options { /** * @default false */ loose: boolean; } export declare function getFolderSizeWasm(base: string, pretty?: false, options?: Options): Promise<number>; export declare function getFolderSizeWasm(base: string, pretty?: true, options?: Options): Promise<string>; export {};