@filego/js / split
split(
options
):Promise
<SplitResult
>
This function splits file into chunks,
and the chunks can be used to check and merge later.
It will return the chunks
, fileSize
and totalChunks
.
import { split } from "@filego/js";
const file: File | Blob | Uint8Array | string = "";
await split({
file,
chunkSize: 2 * 1024 * 1024,
});
• options: SplitOptions
Promise
<SplitResult
>