Key Features • How To Use • Download • License
- Any input/output.
- See state of the file being chunked. e.g. Success, error, finished etc...
- Callbacks for each state of file being chunked.
To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:
# Clone this repository
$ git clone https://github.com/NickersWeb/chunko/
# Go into the repository
$ cd chunko
# Install dependencies
$ npm install
import { chunko, ChunkOutput } from 'file-chunko';
chunko(
file,
{ chunkSizeMB: 8 , chunkOutput: ChunkOutput.DataURL },
(chunk, index) => console.log('endpoint to send chunk.'),
(state, index, total) => console.log('call back per every state change.'),
(state) => console.log('on finished callback.')
);
Note: If you're using Linux Bash for Windows, see this guide or use node
from the command prompt.
You can download the latest installable version of file-chunko for Windows, macOS and Linux.
MIT
GitHub @NickersWeb ·