Gathering detailed insights and metrics for @everymundo/aws-s3-client
Gathering detailed insights and metrics for @everymundo/aws-s3-client
Gathering detailed insights and metrics for @everymundo/aws-s3-client
Gathering detailed insights and metrics for @everymundo/aws-s3-client
npm install @everymundo/aws-s3-client
Typescript
Module System
Node Version
NPM Version
64.7
Supply Chain
77.9
Quality
83.4
Maintenance
100
Vulnerability
100
License
Shell (57.77%)
JavaScript (42.23%)
Total Downloads
7,589
Last Day
6
Last Week
28
Last Month
189
Last Year
1,611
31 Commits
4 Watching
1 Branches
31 Contributors
Latest Version
1.4.2
Package Id
@everymundo/aws-s3-client@1.4.2
Unpacked Size
4.70 kB
Size
2.27 kB
File Count
4
NPM Version
9.6.2
Node Version
18.15.0
Publised On
19 Apr 2023
Cumulative downloads
Total Downloads
Last day
-66.7%
6
Compared to previous day
Last week
-31.7%
28
Compared to previous week
Last month
-14.1%
189
Compared to previous month
Last year
-26.8%
1,611
Compared to previous year
1
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
1npm install --save @everymundo/aws-s3-client
Using Async functions your code can be as simple as this:
1// We recommend you using the following approach just so you can easily stub ```lib.S3``` on your tests 2const lib = require('@everymundo/aws-s3-client') 3 4const getS3File = async (Bucket, Key) => { 5 const s3client = new lib.S3() 6 7 return s3client.getObject({Bucket, Key}).promise() 8})
If you prefer the callback approach you can do this:
1// We recommend you using the following approach just so you can easily stub ```lib.S3``` on your tests 2const lib = require('@everymundo/aws-s3-client') 3 4const getS3File = (Bucket, Key) => new Promise((resolve, reject) => { 5 const s3client = new lib.S3() 6 7 s3client.getObject({Bucket, Key}, (err, response) => err ? reject(err) : resolve(response)) 8})
if you don't care for stubbing you can go ahead and import the S3 directly as a constant
1const {S3} = require('@everymundo/aws-s3-client') 2
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-12-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More