Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zainali99/bit
bit is a javascript image uploader
https://github.com/zainali99/bit
easy-to-use event-emitter file file-upload javascript
Last synced: 10 days ago
JSON representation
bit is a javascript image uploader
- Host: GitHub
- URL: https://github.com/zainali99/bit
- Owner: zainali99
- License: mit
- Created: 2019-11-17T21:29:28.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T14:00:25.000Z (24 days ago)
- Last Synced: 2024-10-23T15:31:30.366Z (23 days ago)
- Topics: easy-to-use, event-emitter, file, file-upload, javascript
- Language: JavaScript
- Homepage:
- Size: 525 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![image](https://github.com/zainali99/bit/assets/9899154/acffe6be-ee2d-40f7-88d3-138f1a06956c)
# What is bit ?
The Bit class is an event-driven JavaScript class that provides functionality for file uploads, drag-and-drop file management, and UI rendering for file previews. It uses the EventEmitter pattern to handle events and has built-in support for internationalization (i18n).
### TODO before first release 1.0- [ ] Use web-worker for reading files.
- [ ] basic validation hook
- [ ] improve i18n system
- [ ] read large file faster without crashing browser# current features:
- [x] drag/drop files
- [x] add additional data (object) to each file to send later with ajax requests.
- [x] implemented basic i18n support
- [x] basic XHR upload func
- [x] Emit basic hooks: getFiles, etc# TODO before the next major release:
- [ ] Basic system of plugins# Documentation
See [docs.html](docs.html)# Commands available
### run test with:```
yarn test
```### launch static server with serve
```
yarn serve
```### test uploading file with express server
```
yarn start```
used in euroingro.com