A bloody simple S3 client, based on the official AWS SDK.
- Promise and callback interface;
- Automatic file integrity check;
- Bloody simple API.
var S3 = require('bloody-simple-s3');
var s3 = new S3({
bucket: 'bucket-name',
region: 'us-east-1',
accessKeyId: 'AKIA-access-key',
secretAccessKey: 'secret-access-key',
sslEnabled: true
});
s3.upload('/Users/john/Photos/monkey.jpg', 'images/monkey-1.jpg')
.then(function (file) {
console.log(file.name);
})
.catch(function (err) {
console.error(err);
});
For further information on how to use this library please refer to the API docs.
$ npm install bloody-simple-s3
- Node.js 0.8+
Source code contributions are most welcome. The following rules apply:
- JavaScript source code needs to follow the Airbnb Style Guide;
- Functions need to be well documented in API docs;
- Unit tests are necessary.
If you are having issues with this library, please let us know.
- Issue Tracker: github.com/visionmobile/bloody-simple-s3/issues
MIT