Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@everymundo/aws-s3-client
Advanced tools
This is an extraction of the S3 client files from aws-sdk node package
This is an extraction of the S3 client files from aws-sdk node package
The goal here is to have a smaller package (in bytes) that contains only the files necessary to interact with AWS S3 in a way so a zipped version of the application is smaller than 5MB and we are able to see our code when deployed to lambda function using custom layers
npm install --save @everymundo/aws-s3-client
Using Async functions your code can be as simple as this:
// We recommend you using the following approach just so you can easily stub ```lib.S3``` on your tests
const lib = require('@everymundo/aws-s3-client')
const getS3File = async (Bucket, Key) => {
const s3client = new lib.S3()
return s3client.getObject({Bucket, Key}).promise()
})
If you prefer the callback approach you can do this:
// We recommend you using the following approach just so you can easily stub ```lib.S3``` on your tests
const lib = require('@everymundo/aws-s3-client')
const getS3File = (Bucket, Key) => new Promise((resolve, reject) => {
const s3client = new lib.S3()
s3client.getObject({Bucket, Key}, (err, response) => err ? reject(err) : resolve(response))
})
if you don't care for stubbing you can go ahead and import the S3 directly as a constant
const {S3} = require('@everymundo/aws-s3-client')
FAQs
This is an extraction of the S3 client files from aws-sdk node package
The npm package @everymundo/aws-s3-client receives a total of 31 weekly downloads. As such, @everymundo/aws-s3-client popularity was classified as not popular.
We found that @everymundo/aws-s3-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 35 open source maintainers 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.