Dice Mist
Dice Mist is a wrapper for the Evaporate library providing web worker support.
When uploading multiple large files, it is possible for the upload process to lag the main JS thread, by delegating this work to a web worker you can keep your UI snappy.
Installation
npm i dice-mist
Usage
import Mist from 'dice-mist';
const config = {
worker: true
};
const files = [
];
Mist(config, files)
.progress((progress, id) => { })
.success((id, data, awsObjectKey) => { })
.error((reason, id) => { })
.start((cancel, id) => { });
Web Worker Crypto Functions
For ease of instantiation the web work implementation does not accept MD5 or SHA256 functions from the config.
These are set to js-spark-md5 and js-sha256.
How It Works