{"id":21031494,"url":"https://github.com/slaveofcode/fastexcel","last_synced_at":"2025-12-29T14:03:28.244Z","repository":{"id":92795076,"uuid":"577047556","full_name":"slaveofcode/fastexcel","owner":"slaveofcode","description":"Fast \u0026 Memory Efficient NodeJs Excel Writer using Rust Binding","archived":false,"fork":false,"pushed_at":"2022-12-15T10:06:20.000Z","size":443,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-20T13:03:30.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/slaveofcode.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":"2022-12-11T20:09:06.000Z","updated_at":"2022-12-15T09:38:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"b48adfb5-ec15-4f14-87e7-e0348b5621b6","html_url":"https://github.com/slaveofcode/fastexcel","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"86777a4e08cf42a7e52536e4c994481f352bac59"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Ffastexcel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Ffastexcel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Ffastexcel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Ffastexcel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slaveofcode","download_url":"https://codeload.github.com/slaveofcode/fastexcel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243472079,"owners_count":20296260,"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":[],"created_at":"2024-11-19T12:29:01.195Z","updated_at":"2025-12-29T14:03:28.182Z","avatar_url":"https://github.com/slaveofcode.png","language":"Rust","readme":"# FastExcel\n\n\u003e This project need Rust to be installed, check here for [Rust installation instruction](https://www.rust-lang.org/tools/install)\n\n\u003e This project using [Rust](https://www.rust-lang.org) and [Neon](https://neon-bindings.com) as a binding to Rust to execute fast and efficient memory usage for generating XLSX document from NodeJs. \n\n\u003e This project cannot be executed via NVM based NodeJs, you should deactivate (via `nvm deactivate`) or use a system version installation of NodeJs (via `nvm use system`).\n\nWriting a large amount of data into Excel file is not a trivial task when you have a limited memory (RAM) allocated. Especially when working at a small node on the server. This library is created to solve that problem, using the efficiency of Rust while generating a large datasheet of XLSX from CSV.\n\n### Installation\n\n    npm i -D cargo-cp-artifact\n\n    npm i fastexcel\n\n### How it works\n\n1. Generate the CSV\n2. Convert the CSV to XLSX\n\nThe CSV generation is happen on the NodeJs side, and converting XLSX file is on Rust side (via Neon)\n\n### Example Usage\n\n```js\n// dummy-excel.js\nconst path = require('path');\nconst { CsvFileWriter, Converter } = require(\"fastexcel\");\n\nconst main = async () =\u003e {\n  const src = path.join(process.cwd(), 'example/source.csv');\n  const dst = path.join(process.cwd(), 'example/generated.xlsx');\n\n  const cols = [];\n  const totalCols = 200; // 200 columns\n  for (let i = 0; i \u003c totalCols; i++) {\n    cols.push('Col ' + (i+1));\n  }\n\n  const writer = new CsvFileWriter(src, cols);\n\n  const totalRows = 3_00_000; // 300k rows\n  for (let i = 0; i \u003c totalRows; i++) {\n    let row = [];\n    \n    for (let i = 0; i \u003c totalCols; i++) {\n      row.push('Col No ' + (i+1));\n    }\n\n    await writer.write(row);\n  }\n\n  await writer.close();\n\n  // Part 2: Convert csv to excel\n  const res = await Converter.toXLSX(\n    src,\n    dst\n  );\n};\n\nmain();\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaveofcode%2Ffastexcel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslaveofcode%2Ffastexcel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaveofcode%2Ffastexcel/lists"}