
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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 0 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.