{"id":23053360,"url":"https://github.com/component/drop-anywhere","last_synced_at":"2025-08-15T03:32:32.270Z","repository":{"id":6792024,"uuid":"8039429","full_name":"component/drop-anywhere","owner":"component","description":"Drag and drop a file anywhere to upload","archived":false,"fork":false,"pushed_at":"2015-03-16T19:00:25.000Z","size":207,"stargazers_count":21,"open_issues_count":1,"forks_count":6,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-14T21:49:19.885Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/component.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-05T22:14:56.000Z","updated_at":"2023-08-22T07:19:43.000Z","dependencies_parsed_at":"2022-09-26T22:01:39.033Z","dependency_job_id":null,"html_url":"https://github.com/component/drop-anywhere","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fdrop-anywhere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fdrop-anywhere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fdrop-anywhere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fdrop-anywhere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/drop-anywhere/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229768053,"owners_count":18121186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-16T00:17:48.876Z","updated_at":"2024-12-16T00:17:49.409Z","avatar_url":"https://github.com/component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# drop-anywhere\n\n  Drag and drop files anywhere to upload.\n\n## Installation\n\n    $ component install component/drop-anywhere\n\n## Example\n\n```js\nvar dropAnywhere = require('drop-anywhere');\n\nvar drop = dropAnywhere(function(e){\n  e.items.forEach(function(item){\n    console.log(item);\n  });\n});\n```\n\n## API\n\n### DropAnywhere#unbind()\n\n  Unbind event handlers.\n\n## Example CSS\n\n  The classname `.show` is added when a user triggers a dragstart event. By\n  default `#drop-anywhere` is stretched 100% horizontally and vertically, with\n  a semi-transparent background.\n\n```css\n@-webkit-keyframes show {\n  from {\n    opacity: 0;\n  }\n  to {\n    opacity: 1;\n  }\n}\n\nbody {\n  text-align: center;\n}\n\n#drop-anywhere {\n  line-height: 500px;\n  text-align: center;\n  color: white;\n  display: none;\n}\n\n#drop-anywhere::before {\n  content: 'Drop to upload!';\n}\n\n#drop-anywhere.show {\n  -webkit-animation: show 300ms;\n}\n  ```\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fdrop-anywhere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Fdrop-anywhere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fdrop-anywhere/lists"}