file-chunker
v0.0.4
Published
Chunk files into smaller ones on the browser.
Downloads
1
Readme
file-chunker
Chunk files into smaller ones directly on the browser.
Install
npm i file-chunker
Usage
import { chunk, FileSize, Units } from 'file-chunker';
var file = new File("example content", "test.js")
var chunkSize = new FileSize(1, Units.MB)
chunk(file, chunkSize)
.then((files) => {
console.log(files.length)
})