{"library":"file-drops","type":"library","category":null,"description":"File-drops is a straightforward, in-browser utility designed to simplify handling file drop events within web applications. It abstracts away the complexities of browser drag-and-drop APIs, allowing developers to easily register a drop handler on any DOM element. When files are dropped, the utility processes them, providing an array of objects containing file `name` and `contents`. The current stable version is `0.7.0`. The package generally sees maintenance updates for dependency bumps or minor fixes, with a significant architectural shift in `v0.6.0` which transitioned it to an ES module-only distribution and introduced official TypeScript type definitions, dropping legacy UMD support. Its primary differentiator lies in its focused scope and minimal API, providing a lean solution for file input without encompassing broader UI components or file system interactions, making it highly suitable for applications requiring only direct file content access upon a user drop.","language":"javascript","status":"active","version":"0.7.0","tags":["javascript","browser","file-drop","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install file-drops","imports":["import fileDrop from 'file-drops';","import type { FileDropHandler } from 'file-drops';","import type { FileContent } from 'file-drops';"]},{"cmd":"yarn add file-drops","imports":[]},{"cmd":"pnpm add file-drops","imports":[]}],"homepage":null,"github":"https://github.com/nikku/file-drops","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/file-drops","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/file-drops/compatibility"}}