Inspired by JSss simple S3 uploading API
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
.travis.yml
README.md
package.json

README.md

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