Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 790 Bytes

split.md

File metadata and controls

34 lines (21 loc) · 790 Bytes

@filego/js / split

Function: 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.

Example

import { split } from "@filego/js";

const file: File | Blob | Uint8Array | string = "";

await split({
    file,
    chunkSize: 2 * 1024 * 1024,
});

Parameters

options: SplitOptions

Returns

Promise<SplitResult>

Defined in

js/src/base/split.ts:57