{"id":15964869,"url":"https://github.com/noobtw/koa-json2xlsx","last_synced_at":"2026-05-09T06:35:36.838Z","repository":{"id":88127974,"uuid":"121945241","full_name":"NoobTW/koa-json2xlsx","owner":"NoobTW","description":"Json to excel(xlsx) middleware for koa.","archived":false,"fork":false,"pushed_at":"2019-03-05T13:56:04.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T06:51:50.425Z","etag":null,"topics":["excel","json","koa","koa2","xlsx"],"latest_commit_sha":null,"homepage":"","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/NoobTW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-18T11:24:37.000Z","updated_at":"2020-02-07T16:41:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3919c9a-3074-4cc4-80da-e71c4e1815fb","html_url":"https://github.com/NoobTW/koa-json2xlsx","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"0d535709c68ecc04cf35d680793dc8520f8fa647"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NoobTW/koa-json2xlsx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoobTW%2Fkoa-json2xlsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoobTW%2Fkoa-json2xlsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoobTW%2Fkoa-json2xlsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoobTW%2Fkoa-json2xlsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NoobTW","download_url":"https://codeload.github.com/NoobTW/koa-json2xlsx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoobTW%2Fkoa-json2xlsx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260844869,"owners_count":23071653,"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":["excel","json","koa","koa2","xlsx"],"created_at":"2024-10-07T17:21:32.033Z","updated_at":"2026-05-09T06:35:36.764Z","avatar_url":"https://github.com/NoobTW.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# koa-json2xlsx\n\n![Build status](https://travis-ci.org/NoobTW/koa-json2xlsx.svg?branch=master) ![Node version](https://img.shields.io/badge/node-%3E%3D_7.6.0-green.svg)\n\n\u003e Json to excel(xlsx) middleware for [koa](https://github.com/koajs/koa)\n\nNeed async/await support, so you have to use Node v7.6+, or use `--harmony` option.\n\n## Installation\n\nInstall using [npm](https://www.npmjs.com):\n```bash\nnpm install koa-json2xlsx\n```\n\n## Usage\n```javascript\nconst Koa = require('koa');\nconst koaJson2xlsx = require('koa-json2xlsx');\n\nconst app = new Koa();\nconst data = [\n  {\n    name: 'Peter',\n    age: 18,\n    foo: 'bar'\n  },\n  {\n    name: 'Jane',\n    age: 19,\n    foo: 'bar'\n  }\n];\n\napp.use(koaJson2xlsx());\napp.use(ctx =\u003e {\n  ctx.xlsx('data.xlsx', data);\n});\n```\n\n## Reference\n\n#### xlsx\n\n**ctx.xlsx(filename, [option])**\n\nYou can find available option [here](https://github.com/rikkertkoppes/json2xls#options).\n\n#### xls\n\nAn alias of `xlsx`.\n\n## Tests\n\nRun tests using `npm test`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoobtw%2Fkoa-json2xlsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoobtw%2Fkoa-json2xlsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoobtw%2Fkoa-json2xlsx/lists"}