{"id":23053700,"url":"https://github.com/component/dropload","last_synced_at":"2025-06-30T16:33:19.272Z","repository":{"id":4641180,"uuid":"5786127","full_name":"component/dropload","owner":"component","description":"Drag and drop uploads","archived":false,"fork":false,"pushed_at":"2015-03-16T22:22:31.000Z","size":184,"stargazers_count":26,"open_issues_count":2,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-14T02:18:53.951Z","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":"2012-09-12T21:21:41.000Z","updated_at":"2024-02-21T15:55:53.000Z","dependencies_parsed_at":"2022-09-25T02:00:38.870Z","dependency_job_id":null,"html_url":"https://github.com/component/dropload","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fdropload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fdropload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fdropload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fdropload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/dropload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229890712,"owners_count":18140157,"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:19:15.649Z","updated_at":"2024-12-16T00:19:16.214Z","avatar_url":"https://github.com/component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dropload\n\n  Drag and drop upload component.\n\n## Installation\n\n    $ component install component/dropload\n\n## Events\n\n  - `upload` (upload) a file was dropped\n  - `text` (string) string representation\n  - `url` (string) url representation\n  - `html` (string) html representation\n  - `drop` (event) a drop was performed\n\n## Example\n\n```js\nvar Dropload = require('dropload');\nvar drop = Dropload(document.getElementById('drop'));\n\ndrop.on('error', function(err){\n  console.error(err.message);\n});\n\ndrop.on('upload', function(upload){\n  console.log('uploading %s', upload.file.name);\n  upload.to('/upload');\n});\n\ndrop.on('text', function(str){\n  console.log('text \"%s\"', str);\n});\n\ndrop.on('url', function(str){\n  console.log('url \"%s\"', str);\n});\n\ndrop.on('html', function(str){\n  console.log('html \"%s\"', str);\n});\n```\n\n## Running example\n\n  Run the Express test server:\n\n```\n$ npm install\n$ make test\n```\n\n# License\n\n  MIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fdropload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Fdropload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fdropload/lists"}