{"id":21610468,"url":"https://github.com/d-band/better-xlsx","last_synced_at":"2025-04-12T15:37:14.875Z","repository":{"id":74769494,"uuid":"73371058","full_name":"d-band/better-xlsx","owner":"d-band","description":"A better xlsx library.","archived":false,"fork":false,"pushed_at":"2021-07-30T01:53:45.000Z","size":1745,"stargazers_count":420,"open_issues_count":18,"forks_count":36,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-05-22T11:39:25.286Z","etag":null,"topics":["excel","excel-export","excelgenerator","nodejs","xlsx","xlsx-lib","xml"],"latest_commit_sha":null,"homepage":"https://d-band.github.io/better-xlsx/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d-band.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-11-10T10:22:32.000Z","updated_at":"2024-04-16T20:33:26.000Z","dependencies_parsed_at":"2023-05-09T17:45:17.258Z","dependency_job_id":null,"html_url":"https://github.com/d-band/better-xlsx","commit_stats":{"total_commits":157,"total_committers":5,"mean_commits":31.4,"dds":0.5095541401273885,"last_synced_commit":"eaae4a54fd33680bf92a3681ba2efa699d215c27"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-band%2Fbetter-xlsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-band%2Fbetter-xlsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-band%2Fbetter-xlsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-band%2Fbetter-xlsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d-band","download_url":"https://codeload.github.com/d-band/better-xlsx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248590504,"owners_count":21129829,"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","excel-export","excelgenerator","nodejs","xlsx","xlsx-lib","xml"],"created_at":"2024-11-24T21:08:19.683Z","updated_at":"2025-04-12T15:37:14.848Z","avatar_url":"https://github.com/d-band.png","language":"JavaScript","funding_links":["https://opencollective.com/better-xlsx"],"categories":[],"sub_categories":[],"readme":"better-xlsx\n===========\n\n\u003e A better xlsx lib for read / write / toTable / from Table\n\n[![NPM version](https://img.shields.io/npm/v/better-xlsx.svg)](https://www.npmjs.com/package/better-xlsx)\n[![NPM downloads](https://img.shields.io/npm/dm/better-xlsx.svg)](https://www.npmjs.com/package/better-xlsx)\n[![Build Status](https://travis-ci.org/d-band/better-xlsx.svg?branch=master)](https://travis-ci.org/d-band/better-xlsx)\n[![Coverage Status](https://coveralls.io/repos/github/d-band/better-xlsx/badge.svg?branch=master)](https://coveralls.io/github/d-band/better-xlsx?branch=master)\n[![Dependency Status](https://david-dm.org/d-band/better-xlsx.svg)](https://david-dm.org/d-band/better-xlsx)\n[![Greenkeeper badge](https://badges.greenkeeper.io/d-band/better-xlsx.svg)](https://greenkeeper.io/)\n[![Backers on Open Collective](https://opencollective.com/better-xlsx/backers/badge.svg)](#backers) \n[![Sponsors on Open Collective](https://opencollective.com/better-xlsx/sponsors/badge.svg)](#sponsors) \n\n---\n\n## Install\n\n```bash\n$ npm install better-xlsx\n```\n\n## Usage\n\n- [More Examples](examples)\n\n```javascript\nconst fs = require('fs');\nconst xlsx = require('better-xlsx');\n\nconst file = new xlsx.File();\n\nconst sheet = file.addSheet('Sheet1');\nconst row = sheet.addRow();\nconst cell = row.addCell();\n\ncell.value = 'I am a cell!';\ncell.hMerge = 2;\ncell.vMerge = 1;\n\nconst style = new xlsx.Style();\n\nstyle.fill.patternType = 'solid';\nstyle.fill.fgColor = '00FF0000';\nstyle.fill.bgColor = 'FF000000';\nstyle.align.h = 'center';\nstyle.align.v = 'center';\n\ncell.style = style;\n\nfile\n  .saveAs()\n  .pipe(fs.createWriteStream('test.xlsx'))\n  .on('finish', () =\u003e console.log('Done.'));\n```\n\n## Todo\n\n- [ ] xlsx parser\n- [ ] read excel file\n- [x] write excel file\n- [x] transform html table to excel file [html2xlsx](https://github.com/d-band/html2xlsx)\n\n## Report a issue\n\n* [All issues](https://github.com/d-band/better-xlsx/issues)\n* [New issue](https://github.com/d-band/better-xlsx/issues/new)\n\n## Reference\n\n- http://www.ecma-international.org/publications/standards/Ecma-376.htm\n- https://github.com/tealeg/xlsx\n\n## Contributors\n\nThis project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].\n\u003ca href=\"graphs/contributors\"\u003e\u003cimg src=\"https://opencollective.com/better-xlsx/contributors.svg?width=890\u0026button=false\" /\u003e\u003c/a\u003e\n\n\n## Backers\n\nThank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/better-xlsx#backer)]\n\n\u003ca href=\"https://opencollective.com/better-xlsx#backers\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/better-xlsx/backers.svg?width=890\"\u003e\u003c/a\u003e\n\n\n## Sponsors\n\nSupport this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/better-xlsx#sponsor)]\n\n\u003ca href=\"https://opencollective.com/better-xlsx/sponsor/0/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/better-xlsx/sponsor/0/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/better-xlsx/sponsor/1/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/better-xlsx/sponsor/1/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/better-xlsx/sponsor/2/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/better-xlsx/sponsor/2/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/better-xlsx/sponsor/3/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/better-xlsx/sponsor/3/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/better-xlsx/sponsor/4/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/better-xlsx/sponsor/4/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/better-xlsx/sponsor/5/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/better-xlsx/sponsor/5/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/better-xlsx/sponsor/6/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/better-xlsx/sponsor/6/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/better-xlsx/sponsor/7/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/better-xlsx/sponsor/7/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/better-xlsx/sponsor/8/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/better-xlsx/sponsor/8/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/better-xlsx/sponsor/9/website\" target=\"_blank\"\u003e\u003cimg src=\"https://opencollective.com/better-xlsx/sponsor/9/avatar.svg\"\u003e\u003c/a\u003e\n\n\n\n## License\n\nbetter-xlsx is available under the terms of the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-band%2Fbetter-xlsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd-band%2Fbetter-xlsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-band%2Fbetter-xlsx/lists"}