An open API service indexing awesome lists of open source software.

https://github.com/rancoud/uploader.js


https://github.com/rancoud/uploader.js

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# uploader.js

[![Test workflow](https://img.shields.io/github/actions/workflow/status/rancoud/uploader.js/test.yml?branch=main)](https://github.com/rancoud/uploader.js/actions/workflows/test.yml)
[![Codecov](https://img.shields.io/codecov/c/github/rancoud/uploader.js?logo=codecov)](https://codecov.io/gh/rancoud/uploader.js)

JS Uploader take care of your image upload, resize, pan, zoom.

## Installation
You need to download the js file from `dist` folder, then you can include it in your HTML at the end of your body.
```html

```
In your page you need that minimum HTML structure.
```html





```
Then in your javascript you can instanciate new Uploader.
```js
var domRoot = document.getElementById("uploader-dom");
var err = new Uploader(domRoot);
if (err instanceof Error) {
console.error(err);
}
```