AustinFelipe / easy-upload

File/Video upload wrapper to ease bucket/storage/space/cdn integration πŸ˜›πŸ‘Š

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EasyUpload

Publish package Coverage Status Maintainability Test Coverage

File/Video upload wrapper to ease bucket/storage/space/cdn integration πŸ˜›πŸ‘Š

TL;DR

EasyUpload provides an easy way to send files/videos to a server. It provides abstraction to uploaders given one way to communicate to mutiple providers.

How to use it

You can install it using either Github or Npmjs.

npm install @austinfelipe/easy-upload

The easiest way to use it is installing one of available provides and get an EasyUpload instance.

Example:

const uploaderImpl = new SomeUploaderImplementation();
const newFile = new FileInfoImplementation();
const uploader = new EasyUpload(uploaderImpl);

await uploader.sendFile(newFile);

Available providers

  • Amazon S3
  • Azure Storage
  • Digital Ocean Spaces

How to build

yarn
yarn run build

About

File/Video upload wrapper to ease bucket/storage/space/cdn integration πŸ˜›πŸ‘Š

License:MIT License


Languages

Language:TypeScript 100.0%