@austinfelipe/easy-upload

File/Video upload wrapper to ease bucket/storage/space/cdn integration 😛👊

Usage no npm install needed!

<script type="module">
  import austinfelipeEasyUpload from 'https://cdn.skypack.dev/@austinfelipe/easy-upload';
</script>

README

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