@austinfelipe/easy-upload
v0.0.14
Published
File/Video upload wrapper to ease bucket/storage/space/cdn integration ππ
Downloads
24
Maintainers
Readme
EasyUpload
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