
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
hyperdrive-import-queue
Advanced tools
Takes an array of files, chunks and writes them to a hyperdrive archive. onFileWriteBegin
callback returns each file object with a progress listener that emits file write progress info as each file is written. Progress info provided via progress-stream.
arguments:
hyperdriveImportQueue(files, archive, {
cwd: '', // defaults to ''
progressInterval: 100, // defaults to 100ms
chunkSize: 4*1024, // defaults to 4*1024
onQueueNewFile: function (err, file) {
// add file to your queue UI
},
onFileWriteBegin: function (err, file) {
// you may now start incrementing your progress bar UI at this point
// by attaching your progress listener callback to the `progress` event:
file.progressListener.on('progress', function (progress) {
// increment your progress bars here using the `progress` argument data
})
},
onFileWriteComplete: function (err, file) {
// a single file has now been written to the hyperdrive archive
// the next file in the queue will start writing and trigger a new
// `onFileWriteBegin` callback to fire
},
onCompleteAll: function (err, files) {
// do whatever you like
}
})
FAQs
A hyperdrive import queue that emits progress events.
The npm package hyperdrive-import-queue receives a total of 0 weekly downloads. As such, hyperdrive-import-queue popularity was classified as not popular.
We found that hyperdrive-import-queue 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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.