Skip to content

NickersWeb/chunko

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


file-chunko
file-chunko

Simple javascript file chunking system to easily chunk to an endpoint.

npm version

Key FeaturesHow To UseDownloadLicense

man slicing animation

Key Features

  • Any input/output.
  • See state of the file being chunked. e.g. Success, error, finished etc...
  • Callbacks for each state of file being chunked.

How To Use

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.

Download

You can download the latest installable version of file-chunko for Windows, macOS and Linux.

License

MIT


GitHub @NickersWeb  · 

About

Javascript file chunking system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published