upload2s3

1.1.0 • Public • Published

Upload2S3

A robust S3 uploader, with expotential backoff and multipart support.

Usage

var knox = require('knox'),
    s3upload = require('upload2s3');
 
var client = knox.createClient({
    key: '<key>',
    secret: '<secret>',
    bucket: '<bucket>'
});
 
var s3uploader = new s3upload(knox);
 
s3uploader.upload(new Buffer('MY FILE CONTENTS'), '/file.txt', { 'Content-Type': 'text/plain' }, function(err, res) {
    if (err) { throw err; }
    // File upload succeeded.
});

Debug

var s3uploader = new s3upload(knox, console.log);
// It will console.log helpful debug messages.

/upload2s3/

    Package Sidebar

    Install

    npm i upload2s3

    Weekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • dmitrig01