HTML5 drag & drop for humans
npm install drag-drop[ci-image]: https://img.shields.io/github/workflow/status/feross/drag-drop/ci/master
[ci-url]: https://github.com/feross/drag-drop/actions
[npm-image]: https://img.shields.io/npm/v/drag-drop.svg
[npm-url]: https://npmjs.org/package/drag-drop
[downloads-image]: https://img.shields.io/npm/dm/drag-drop.svg
[downloads-url]: https://npmjs.org/package/drag-drop
[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
[standard-url]: https://standardjs.com
In case you didn't know, the
HTML5 drag and drop API
is a
total disaster!
This is an attempt to make the API usable by mere mortals.
See https://instant.io.
- simple API
- supports files and directories
- excellent browser support (Chrome, Firefox, Safari, Edge)
- adds a drag class to the drop target on hover, for easy styling!
- optionally, get the file(s) as a Buffer (see buffer)
```
npm install drag-drop
This package works in the browser with browserify. If you do not use a bundler, you can use the standalone script directly in a