Skip to content

bekzod/bsss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BSSS

Multipart S3 file uploader, simultaneously uploads several parts. Buffers upload chunks until they are fully uploaded. The module might not be scalable but good for reliable upload to S3.

Usage

    var fs = require('fs'),
    stream = fs.createReadStream(__dirname+'/../data.mov'),
    Bsss   = require('bsss');
    
    var bsss = new Bsss({
            key      : process.env.AWS_KEY,
            secret   : process.env.AWS_SECRET,
            bucket   : process.env.AWS_BUCKET,
            endPoint : process.env.AWS_ENDPOINT,
    })

    var upload = bsss.upload('/path',stream,{
            integrityCheck    : true,
            retry             : 3,
            concurrency       : 3,
            bufferSize        : '15mb'
        });
    
    bsss.on("finished",function(){
        console.log('finished')
    });
    
    //bsss.destroy() // destroyes all uploades

About

Inspired by JSss simple S3 uploading API

Resources

Stars

Watchers

Forks

Packages

No packages published