This repo contains the browserify build of minio-js, so it can be used by frontend (browser GUI) projects using yarn or npm for dependency management.
On top it provides a very thin ES6 wrapper layer.
yarn add 'paulscherrerinstitute/minio-js-browser'
or
npm install --save 'paulscherrerinstitute/minio-js-browser'
If you are using ES6 (ES2015) you can use the wrapper like this:
import { Minio } from 'minio-js-browser/minio-browser-es6.js';
If you are not using ES6 modules, you can load minio-js into the
browser's global window
object like this:
<script src="node_modules/minio-js-browser/minio-browser.js"></script>
And later you can use it like that:
<script>
function myFunc() {
var minioClient = new Minio.Client( ... );
// ...
}
</script>
minio-js is licensed under the Apache 2.0 license.