
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
chunkloader
Advanced tools
Install:
npm install chunkloader
Chunked file loader
// Create
var ChunkLoader = require('chunkloader')
var loader = new ChunkLoader({
size:1024*1024
})
loader
.on('start',function(next) {
console.log('start')
next()
})
.on('error',function(err) {
console.error(err)
})
.on('chunk',function(chunk,next) {
// chunk
// {
// data:Buffer object
// index:chunk index
// length:chunk length
// offset:chunk offset of the file
// }
something_to_do(function(err) {
next(err)
})
})
.on('complete',function() {
console.log('complete')
})
// start loading
loader.load(evt.target.files[0])
Specify chunk size
default:1024*1024
MIT
FAQs
Load file as chunks on browser.
The npm package chunkloader receives a total of 5 weekly downloads. As such, chunkloader popularity was classified as not popular.
We found that chunkloader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.