Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Storage-agnostic streaming upload/download in Node.js
Giga is an abstract storage class to easily streaming upload and download files to Local File System, AWS S3, and more.
# NPM
$ npm install --save giga
# Yarn
$ yarn add giga
const fs = require('fs');
const Giga = require('giga');
const S3Storage = require('giga/storages/S3Storage');
const LocalStorage = require('giga/storages/LocalStorage');
const storage = new Giga({
storage: new S3Storage({
region: 'ap-northeast-2',
bucket: 'test'
})
});
// Upload file to S3
const { filePath } = await storage.upload(fs.createReadStream('./my-file'));
// Download file from S3
const { filePath } = await storage.download(
'hello-world.txt',
fs.createWriteStream('./my-file')
);
This project follows the Contributor Covenant Code of Conduct.
Please use the issue tracker to report any bugs or ask feature requests.
If you have any questions, feel free to join me at #posquit0
on Freenode and ask away. Click here to connect.
FAQs
Easy streaming upload and download for storages(File System, AWS S3)
We found that giga 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.