{"id":13716438,"url":"https://github.com/julianduque/micro-upload","last_synced_at":"2025-04-14T11:15:46.654Z","repository":{"id":57296512,"uuid":"88661701","full_name":"julianduque/micro-upload","owner":"julianduque","description":"An express-fileupload wrapper for micro","archived":false,"fork":false,"pushed_at":"2020-08-05T15:15:08.000Z","size":6,"stargazers_count":34,"open_issues_count":3,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-07T15:23:08.677Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/julianduque.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-18T19:17:29.000Z","updated_at":"2023-05-12T20:18:47.000Z","dependencies_parsed_at":"2022-09-07T03:21:19.676Z","dependency_job_id":null,"html_url":"https://github.com/julianduque/micro-upload","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julianduque%2Fmicro-upload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julianduque%2Fmicro-upload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julianduque%2Fmicro-upload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julianduque%2Fmicro-upload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julianduque","download_url":"https://codeload.github.com/julianduque/micro-upload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233691739,"owners_count":18715018,"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-08-03T00:01:10.495Z","updated_at":"2025-01-13T04:23:46.191Z","avatar_url":"https://github.com/julianduque.png","language":"JavaScript","funding_links":[],"categories":["Modules"],"sub_categories":["Wrappers"],"readme":"# micro-upload\n\nAn [express-fileupload](https://npm.im/express-fileupload) wrapper for [micro](https://github.com/zeit/micro)\n\n## Install\n\n```\n$ npm install --save micro-upload\n```\n\n## Usage\n\n``` js\n'use strict'\n\nconst { send } = require('micro')\nconst { upload, move } = require('micro-upload')\n\nmodule.exports = upload(async (req, res) =\u003e {\n  if (!req.files) {\n    return send(res, 400, 'no file uploaded')\n  }\n\n  let file = req.files.file\n  await move(file, `/tmp/uploads/${file.name}`)\n  send(res, 200, 'upload success')\n})\n```\n## Authors and Contributors\n\n\u003ctable\u003e\u003ctbody\u003e\n\u003ctr\u003e\u003cth align=\"left\"\u003eJulián Duque\u003c/th\u003e\u003ctd\u003e\u003ca href=\"https://github.com/julianduque\"\u003eGitHub/julianduque\u003c/a\u003e\u003c/td\u003e\u003ctd\u003e\u003ca href=\"http://twitter.com/julian_duque\"\u003eTwitter/@julian_duque\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\n\u003c/tbody\u003e\u003c/table\u003e\n\nContributions are welcomed from anyone wanting to improve this project!\n\n## License \u0026 Copyright\n\n**micro-upload** is Copyright (c) 2017 Julian Duque and licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included [LICENSE.md](https://github.com/julianduque/micro-upload/blob/master/LICENSE.md) file for more details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulianduque%2Fmicro-upload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulianduque%2Fmicro-upload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulianduque%2Fmicro-upload/lists"}