Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

giga

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

giga

Easy streaming upload and download for storages(File System, AWS S3)

  • 0.2.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by800%
Maintainers
1
Weekly downloads
 
Created
Source

Giga

Storage-agnostic streaming upload/download in Node.js

CircleCI Coverage Status npm version npm npm MIT Licence Open Source Love

Giga is an abstract storage class to easily streaming upload and download files to Local File System, AWS S3, and more.

  • It was written for use on OMNIOUS which provides fashion A.I API service.

Installation

# NPM
$ npm install --save giga
# Yarn
$ yarn add giga

Usage

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')
);

Contributing

This project follows the Contributor Covenant Code of Conduct.

Bug Reports & Feature Requests

Please use the issue tracker to report any bugs or ask feature requests.

Contact

If you have any questions, feel free to join me at #posquit0 on Freenode and ask away. Click here to connect.

License

MIT © Byungjin Park

Keywords

FAQs

Package last updated on 15 Dec 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc