{"id":23053682,"url":"https://github.com/component/upload","last_synced_at":"2025-08-15T04:30:56.112Z","repository":{"id":4640690,"uuid":"5785592","full_name":"component/upload","owner":"component","description":"file upload and progress api","archived":false,"fork":false,"pushed_at":"2015-03-12T21:41:25.000Z","size":187,"stargazers_count":39,"open_issues_count":3,"forks_count":15,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-08-09T03:33:12.826Z","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-12T20:36:35.000Z","updated_at":"2023-08-18T11:29:53.000Z","dependencies_parsed_at":"2022-08-25T22:41:22.799Z","dependency_job_id":null,"html_url":"https://github.com/component/upload","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/component/upload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fupload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fupload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fupload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fupload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/upload/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fupload/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270523882,"owners_count":24600186,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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:08.625Z","updated_at":"2025-08-15T04:30:55.860Z","avatar_url":"https://github.com/component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# upload\n\n  file upload and progress api\n\n## Installation\n\n    $ component install component/upload\n\n## Events\n\n  - `error` an error occurred\n  - `abort` upload was aborted\n  - `progress` (e) upload in progress (`e.percent`, `e.totalSize` etc)\n  - `end` upload is complete\n\n## API\n\n### Upload(file)\n\n  Initialize an `Upload` with the given `file`, where `file`\n  is a `File` object, for example from a `input.files[0]` `FileList`.\n\n```js\nvar upload = new Upload(file);\nvar upload = Upload(file);\n```\n\n### Upload#to(path, [fn])\n\n  __POST__ the multipart upload to `path` and invoke `fn(err, res)`.\n\n```js\nupload.to('/upload');\nupload.on('progress', reportProgress);\nupload.on('end', done);\n```\n\n## Running tests\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%2Fupload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Fupload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fupload/lists"}