Skip to content
/ bit Public

a JavaScript library for file uploads and drag-and-drop management, featuring file previews and event-driven architecture with basic i18n.

License

Notifications You must be signed in to change notification settings

zainali99/bit

Repository files navigation

image

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:

  • drag/drop files
  • add additional data (object) to each file to send later with ajax requests.
  • implemented basic i18n support
  • basic XHR upload func
  • Emit basic hooks: getFiles, etc

TODO before the next major release:

  • Basic system of plugins

Documentation

See 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

About

a JavaScript library for file uploads and drag-and-drop management, featuring file previews and event-driven architecture with basic i18n.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published