
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
s3-component-2
Advanced tools
S3 client upload library
$ component install component/s3
var Upload = require('s3');
var drop = require('drop-anywhere');
drop(function(err, drop){
if ('upload' != drop.type) return;
var file = drop.item.file;
console.log('upload %s', file.name);
var uid = Math.random() * 1e10 | 0;
var upload = Upload(file, { name: uid })
var prog = document.querySelector('#progress');
upload.on('progress', function(e){
prog.textContent = (e.percent | 0) + '%';
});
upload.end(function(err){
if (err) throw err;
console.log('upload complete %s', upload.name);
});
});
By default an upload performs a GET request to the "/sign" end-point, which responds with a url signed by your aws secret.
name remote filename or file.nametype content-type or file.typeroute signature GET route [/sign]Events:
error an error occurredabort upload was abortedprogress upload in progress (e.percent etc)end upload is completeFirst populate ./config.json with your credentials:
{
"key": "asdfasdfasdfasdf",
"secret": "asdfasdfasdfasdfasdfadsfasfdsfdasdf+fHgg",
"bucket": "files.example.com"
}
Boot the test server:
$ node test
MIT
FAQs
S3 client upload library
The npm package s3-component-2 receives a total of 3 weekly downloads. As such, s3-component-2 popularity was classified as not popular.
We found that s3-component-2 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.