Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 22 lines (15 sloc) 0.459 kb

Node S3

A simple Amazon S3 node.js integration.

Usage

var s3Url = '...'; // s3://{key}:{secret}@{bucket}.s3.amazonaws.com
var s3 = require('s3').create(s3Url);

// Pipe a request directly to S3
var headers = { 'content-length': req.headers['content-length'] };
var s3Req = s3.put('/some-s3-key', { headers: headers }, callback);
req.pipe(s3Req);

// Upload a buffer to S3
s3.put('/some-s3-key', { body: buffer }, callback);

License

MIT

Something went wrong with that request. Please try again.