bsss

README.md

npm install bsss
8 downloads in the last month

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
npm loves you