# drag-drop **Repository Path**: mirrors_feross/drag-drop ## Basic Information - **Project Name**: drag-drop - **Description**: HTML5 drag & drop for humans - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # drag-drop [![ci][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url] [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 ### HTML5 drag & drop for humans In case you didn't know, the [HTML5 drag and drop API](https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API) is a [total disaster](http://www.quirksmode.org/blog/archives/2009/09/the_html5_drag.html)! This is an attempt to make the API usable by mere mortals. ### live demo See [https://instant.io](https://instant.io). ### features - 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](https://github.com/feross/buffer)) ### install ``` npm install drag-drop ``` This package works in the browser with [browserify](https://browserify.org). If you do not use a bundler, you can use the [standalone script](https://bundle.run/drag-drop) directly in a `