Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
aws-s3-connector
Advanced tools
Tired of all the hassles downloading, removing from and uploading to Amazon S3? The solution is here!
npm install --save aws-s3-connector
S3Connector = require 'aws-s3-connector'
Storage = new S3Connector
credentials: './credentials/aws.json'
Bucket: 'BUCKET_NAME'
var S3Connector = require('aws-s3-connector');
var Storage = new S3Connector({
credentials: './credentials/aws.json',
Bucket: 'BUCKET_NAME'
});
The Bucket is already defined in the Storage! You only need to pass the folder and filename inside S3 as remoteFile.
download 'remoteFile', 'localFile', callback
# or
download 'remoteFile', Buffer, callback
Storage.download 'from-nosql/test.json', './downloads/test.json', (err) ->
return console.error err if err
console.log 'file downloaded'
Storage.download('from-nosql/test.json', './downloads/test.json', function(err) {
if (err) {
return console.error(err);
}
console.log('file downloaded');
});
remove 'remoteFile', callback
# or, to remove multiple files at once
remove ['remoteFile1', 'remoteFile2'], callback
Storage.remove 'from-nosql/test.json', (err) ->
return console.error err if err
console.log 'file removed'
Storage.remove('from-nosql/test.json', function(err) {
if (err) {
return console.error(err);
}
console.log('file removed');
});
upload 'localFile', 'remoteFile', callback
# or
upload Buffer, 'remoteFile', callback
Storage.upload './uploads/answer.json', 'from-kernel/answer.json', (err) ->
return console.error err if err
console.log 'file uploaded'
Storage.upload('./uploads/answer.json', 'from-kernel/answer.json', function(err) {
if (err) {
return console.error(err);
}
console.log('file uploaded');
});
{
"accessKeyId": "YOUR_ACCESS_KEY_ID",
"secretAccessKey": "YOUR_SECRET_ACCESS_KEY",
"region": "YOUR_REGION"
}
FAQs
Amazon WebService S3 Connector
The npm package aws-s3-connector receives a total of 8 weekly downloads. As such, aws-s3-connector popularity was classified as not popular.
We found that aws-s3-connector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.