{"id":15679868,"url":"https://github.com/zaida04/multer-cloudflare-storage","last_synced_at":"2025-05-07T10:20:29.221Z","repository":{"id":57304939,"uuid":"430920388","full_name":"zaida04/multer-cloudflare-storage","owner":"zaida04","description":"🚀 Multer engine for Cloudflare Images with ease.","archived":false,"fork":false,"pushed_at":"2023-11-27T01:57:51.000Z","size":19,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-16T00:13:07.067Z","etag":null,"topics":["multer","multer-library","multer-storage"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/zaida04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-11-23T01:29:06.000Z","updated_at":"2024-10-16T11:13:44.000Z","dependencies_parsed_at":"2023-11-08T03:49:24.750Z","dependency_job_id":"9d5f8584-29fb-4398-8476-83e1ba356de8","html_url":"https://github.com/zaida04/multer-cloudflare-storage","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"7bfa4ea40fde7eeff5c76b53eed670ae7b8fb19a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaida04%2Fmulter-cloudflare-storage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaida04%2Fmulter-cloudflare-storage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaida04%2Fmulter-cloudflare-storage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaida04%2Fmulter-cloudflare-storage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaida04","download_url":"https://codeload.github.com/zaida04/multer-cloudflare-storage/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252856770,"owners_count":21814899,"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":["multer","multer-library","multer-storage"],"created_at":"2024-10-03T16:38:15.599Z","updated_at":"2025-05-07T10:20:29.171Z","avatar_url":"https://github.com/zaida04.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `multer-cloudflare-storage`\n\n[![GitHub](https://img.shields.io/github/license/zaida04/multer-cloudflare-storage)](https://github.com/zaida04/multer-cloudflare-storage/blob/main/LICENSE)\n[![npm](https://img.shields.io/npm/v/multer-cloudflare-storage?color=crimson\u0026logo=npm)](https://www.npmjs.com/package/multer-cloudflare-storage)\n[![CI workflows](https://github.com/zaida04/multer-cloudflare-storage/actions/workflows/ci.yml/badge.svg)](https://github.com/zaida04/multer-cloudflare-storage/actions/workflows/ci.yml)\n\n## 📥 Installation\n\nYou can install this package from [NPM](https://www.npmjs.com/package/multer-cloudflare-storage)\n\n-   `npm install multer-cloudflare-storage`\n-   `yarn add multer-cloudflare-storage`\n\n## ⚡ Usage\n\n```typescript\nimport express, { Request, Response } from \"express\";\nimport multer from \"multer\";\nimport { CloudflareStorage } from \"multer-cloudflare-storage\";\n\nconst app = express();\nconst uploader = multer({\n    storage: new CloudflareStorage(\"YOUR_CLOUDFLARE_ACCOUNT_ID_HERE\", \"YOUR_CLOUDFLARE_ACCOUNT_TOKEN_HERE\")\n});\n\napp.post(\"/\", uploader.single(\"image\"), (req: Request, _res: Response) =\u003e {\n    console.log(req.file);\n    // {\n    //     fieldname: 'image',\n    //     originalname: 'PLACEHOLDER_IMAGE_NAME.jiff',\n    //     encoding: '7bit',\n    //     mimetype: 'application/octet-stream',\n    //     path: 'https://imagedelivery.net/PLACEHOLDER_ACCOUNT_ID/PLACEHOLDER_IMAGE_ID/public',\n    //     filename: null,\n    //     destination: 'PLACEHOLDER_IMAGE_ID'\n    // }\n});\n```\n\nYou can find a working example of an Express server with multer and this package [here](https://github.com/zaida04/multer-cloudflare-storage/blob/main/example/src/index.ts)\n\n## ✋ Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nPlease ensure any and all commits pass our tests, linting, and build steps as described in the root package.json.\n\n## ⚖️ LICENSE\n\nLicensed under the [MIT License](https://github.com/zaida04/multer-cloudflare-storage/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaida04%2Fmulter-cloudflare-storage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaida04%2Fmulter-cloudflare-storage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaida04%2Fmulter-cloudflare-storage/lists"}