{"id":24711928,"url":"https://github.com/borgar/xlsx-convert","last_synced_at":"2026-02-18T14:10:28.795Z","repository":{"id":137100591,"uuid":"339191465","full_name":"borgar/xlsx-convert","owner":"borgar","description":"Utility to convert Excel XLSX files to JSON","archived":false,"fork":false,"pushed_at":"2024-10-08T13:01:40.000Z","size":330,"stargazers_count":1,"open_issues_count":9,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T17:19:44.270Z","etag":null,"topics":["excel","json","spreadsheet","workbook","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/borgar.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}},"created_at":"2021-02-15T19:58:38.000Z","updated_at":"2024-10-08T13:01:43.000Z","dependencies_parsed_at":"2024-02-10T16:22:12.992Z","dependency_job_id":"82e61b2c-db1c-446b-8e37-66e3004cf7fd","html_url":"https://github.com/borgar/xlsx-convert","commit_stats":null,"previous_names":["borgar/xlsx-reader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borgar%2Fxlsx-convert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borgar%2Fxlsx-convert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borgar%2Fxlsx-convert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borgar%2Fxlsx-convert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borgar","download_url":"https://codeload.github.com/borgar/xlsx-convert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235813635,"owners_count":19048989,"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","spreadsheet","workbook","xlsx"],"created_at":"2025-01-27T07:16:36.151Z","updated_at":"2026-02-18T14:10:28.788Z","avatar_url":"https://github.com/borgar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XLSX-convert\n\nThis is a utility to convert Excel XLSX files to JSON format. It supports only XLSX files and outputs JSF, [JSON spreadsheet format](https://github.com/jsfkit/types) ([see below](#output)).\n\nThe library will run in a browser as well as in server environments (Node, Deno, Bun, etc.).\n\nThis utility was developed as tooling for [GRID – The new face of spreadsheets](https://grid.is/), to which it owes a debt of gratitude.\n\n\n## Installing\n\nThe library is also provided as an NPM package:\n\n    $ npm install @borgar/xlsx-convert\n\n\n## Usage\n\n\n```js\n// import the converter\nimport xlsxConvert from '@borgar/xlsx-convert';\n\n// read the file\nconst jsf = await xlsxConvert('path/to/workbook.xlsx', options);\n\n// emit results\nconsole.log(jsf);\n```\n\nThis will emit a structure like this:\n\n```js\n{\n  \"filename\": \"workbook.xlsx\",\n  \"sheets\": [\n    {\n      \"cells\": {\n        \"A1\": { \"v\": 12 },\n        \"B1\": { \"v\": 123.1 },\n        \"A2\": { \"v\": \"Total\" },\n        \"B2\": { \"v\": 135.1, \"f\": \"SUM(A1:B1)\", },\n      },\n      \"merges\": [],\n      \"colWidths\": [],\n      \"rowHeights\": [],\n      \"hidden\": 0,\n      \"name\": \"Sheet1\"\n    }\n  ],\n  \"names\": [],\n  \"styles\": [\n    { \"font-size\": 12 }\n  ]\n}\n```\n\n### \u003ca name=\"output\" href=\"#output\"\u003e#\u003c/a\u003e Output:\n\nThe [JSON spreadsheet format](https://jsfkit.github.io/types/) is similar to, but not compatible with the [CSF structure](https://github.com/SheetJS/sheetjs#common-spreadsheet-format) used by the [`xlsx` package](https://github.com/SheetJS/sheetjs).\n\nSupported cell properties are:\n\n| Cell. | Note |\n|- |-\n| `v` | Value of the cell in its correct type.\n| `f` | An integer index into a list of formula expressions in R1C1-syntax, or an expression string in A1-syntax.\n| `F` | The A1-style range of enclosing array if the formula is an array formula.\n| `c` | A list of comments attached to the cell.\n| `s` (optional) | Index of style information associated with the cell.\n| `t` (optional) | A type for the value in the cell (this library only emits an `\"e\"` when the value is an error).\n| `l` (optional) | A URL attached to the cell.\n\nOnly cells that have \"relevant data\" are emitted, which in praxis means cells that have such things as values, formula, and visible styles attached to them.\n\n\n## Documentation\n\nDocumentation can be found under [docs/](./docs/):\n\n* The API is documented in [docs/API.md](./docs/API.md).\n* The JSF output is documented at [jsfkit.github.io](https://jsfkit.github.io/types/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborgar%2Fxlsx-convert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborgar%2Fxlsx-convert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborgar%2Fxlsx-convert/lists"}