https://github.com/rancoud/uploader.js
https://github.com/rancoud/uploader.js
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rancoud/uploader.js
- Owner: rancoud
- License: mit
- Created: 2023-10-25T12:42:39.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-26T13:46:27.000Z (11 months ago)
- Last Synced: 2025-02-26T19:44:31.623Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.02 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# uploader.js
[](https://github.com/rancoud/uploader.js/actions/workflows/test.yml)
[](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);
}
```