{"id":28070136,"url":"https://github.com/neverbot/json-xls-converter","last_synced_at":"2026-04-18T17:32:57.406Z","repository":{"id":182780050,"uuid":"657148549","full_name":"neverbot/json-xls-converter","owner":"neverbot","description":"Node utility to convert json to an Excel file.","archived":false,"fork":false,"pushed_at":"2023-11-29T13:14:13.000Z","size":247,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T05:35:14.511Z","etag":null,"topics":["excel","javascript","json","node"],"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/neverbot.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-06-22T12:26:18.000Z","updated_at":"2024-03-26T14:54:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"1543252f-3aaa-4430-afd6-4b4bcd2339ac","html_url":"https://github.com/neverbot/json-xls-converter","commit_stats":null,"previous_names":["neverbot/json-xls-converter"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/neverbot/json-xls-converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverbot%2Fjson-xls-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverbot%2Fjson-xls-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverbot%2Fjson-xls-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverbot%2Fjson-xls-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neverbot","download_url":"https://codeload.github.com/neverbot/json-xls-converter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neverbot%2Fjson-xls-converter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31977964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["excel","javascript","json","node"],"created_at":"2025-05-12T19:38:05.253Z","updated_at":"2026-04-18T17:32:57.380Z","avatar_url":"https://github.com/neverbot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-xls-converter\n\n[![npm](https://img.shields.io/npm/dt/json-xls-converter)](https://www.npmjs.com/package/json-xls-converter)\n[![npm](https://img.shields.io/npm/dw/json-xls-converter)](https://www.npmjs.com/package/json-xls-converter)\n[![GitHub license](https://img.shields.io/github/license/neverbot/json-xls-converter)](https://github.com/neverbot/json-xls-converter/blob/master/LICENSE)\n[![npm](https://img.shields.io/npm/v/json-xls-converter)](https://www.npmjs.com/package/json-xls-converter)\n\n**Utility to convert json to an Excel file.**\n\nThis is an updated version of [json2xls](https://github.com/rikkertkoppes/json2xls) which seems to be abandoned, and have some important vulnerabilities in its dependencies (some of them abandoned too).\n\nThis project is based in:\n- [`json2xls`](https://github.com/rikkertkoppes/json2xls), by [Rikkert Koppes](https://github.com/rikkertkoppes).\n- [`excel-export`](https://github.com/functionscope/Node-Excel-Export), by [functionscope](https://github.com/functionscope).\n\nNone of those projects included any kind of license, I'm distributing this new version with the MIT license.\n\n## Installation\n\n`npm i json-xls-converter`\n\n## Usage \n\nTo save as a file:\n\n```javascript\nimport { converter } from 'json-xls-converter';\nimport fs from 'fs/promises';\n\nconst json = {\n  foo: 'bar',\n  qux: 'moo',\n  poo: 123,\n  stux: new Date()\n}\n\nconst xls = await converter(json);\n\nawait fs.writeFile('data.xlsx', xls, 'binary');\n```\n\nOr use as an express middleware. It adds a convenience xls method to the response object to immediately output an excel file as a download.\n\n```javascript\nconst jsonArr = [{\n  foo: 'bar',\n  qux: 'moo',\n  poo: 123,\n  stux: new Date()\n},\n{\n  foo: 'bar',\n  qux: 'moo',\n  poo: 345,\n  stux: new Date()\n}];\n\napp.use(converter.middleware);\n\napp.get('/', (req, res) =\u003e {\n  res.xls('data.xlsx', jsonArr);\n});\n```\n\n## Migrating from json2xls to json-xls-converter\n\n1. `npm remove json2xls \u0026\u0026 npm install json-xls-converter`\n\n2. Change every import from:\n\n   `import json2xls from 'json2xls';`\n\n   to:\n\n   `import { converter } from 'json-xls-converter';`\n\n3. Change every invocation from:\n\n   `const xls = json2xls(data);`\n\n   to:\n\n   `const xls = await converter(data);`\n\n4. If you are using it as an express middleware, change from:\n\n   `app.use(json2xls.middleware);`\n\n   to:\n   \n   `app.use(converter.middleware);`\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneverbot%2Fjson-xls-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneverbot%2Fjson-xls-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneverbot%2Fjson-xls-converter/lists"}