Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

exceljs

> 编程语言
Open source

Excel Workbook Manager

15.4K stars0 likes1 views
WebsiteGitHub

About

Excel Workbook Manager

ExcelJS

Read, manipulate and write spreadsheet data and styles to XLSX and JSON.

Reverse engineered from Excel spreadsheet files as a project.

Translations

  • 中文文档

Installation

bash
npm install exceljs

New Features!

  • Merged Add pivot table with limitations #2551.
    Many thanks to Protobi and Michael for this contribution!
  • Merged fix: styles rendering in case when "numFmt" is present in conditional formatting rules (resolves #1814) #1815.
    Many thanks to @andreykrupskii for this contribution!
  • Merged inlineStr cell type support #1575 #1576.
    Many thanks to @drdmitry for this contribution!
  • Merged Fix parsing of boolean attributes #1849.
    Many thanks to @bno1 for this contribution!
  • Merged add optional custom auto-filter to table #1670.
    Many thanks to @thambley for this contribution!
  • Merged Deep copy inherited style #1850.
    Many thanks to @ikzhr for this contribution!
  • Merged Upgrade actions/cache and actions/setup-node #1846.
    Many thanks to @cclauss for this contribution!
  • Merged Check object keys in isEqual #1831.
    Many thanks to @bno1 for this contribution!
  • Merged Add v17 to testing workflow #1856.
    Many thanks to @Siemienik for this contribution!
  • Merged Upgrade jszip to its latest version to date. This version does not have any vulnerability found by Snyk so far #1895.
    Many thanks to @ValerioSevilla for this contribution!
  • Merged Update README.md #1677.
    Many thanks to @xjrcode for this contribution!
  • Merged (docs): set prototype of RegExp correctly. #1700.
    Many thanks to @joeldenning for this contribution!
  • Merged Added timeouts to github actions #1733.
    Many thanks to @alexbjorlig for this contribution!
  • Merged fix issue 1676 #1701.
    Many thanks to @skypesky for this contribution!
  • Merged ExcelJS/ExcelJS#2237 : Update CI Tests, Drop support for Node v8 #2242.
    Many thanks to @Siemienik for this contribution!
  • Merged Fix types for getWorksheet() #2223.
    Many thanks to @hfhchan-plb for this contribution!
  • Merged add characters cannot be used for worksheet name #2126.
    Many thanks to @tkm-kj for this contribution!
  • Merged Fix issue #1753 Reject promise when workbook reader is writing to temporary file stream and error occurs #1756.
    Many thanks to @pauliusg for this contribution!
  • Merged README.md to have correct link for Streaming XLSX #2186.
    Many thanks to @wulfsolter for this contribution!
  • Merged Added a polyfill of promise.finally to support lower versions of Firefox. #1982.
    Many thanks to @DemoJj for this contribution!
  • Merged Fix read this.worksheet before assign it #1934.
    Many thanks to @ZyqGitHub1 for this contribution!
  • Merged chore: upgrade jszip to ^3.10.1 #2211.
    Many thanks to @jarrod-cocoon for this contribution!
  • Merged fixed spelling error in README.md file #2208.
    Many thanks to @HugoP27 for this contribution!
  • Merged fix: Fix xlsx.writeFile() not catching error when error occurs #2244.
    Many thanks to @zurmokeeper for this contribution!
  • Merged Improve worksheets' naming validation logic. #2257.
    Many thanks to @Siemienik for this contribution!
  • Merged fix issue 2125 - spliceRows remove last row #2140.
    Many thanks to @babu-ch for this contribution!
  • Merged fix: fix the loss of column attributes due to incorrect column order #2222.
    Many thanks to @cpaiyueyue for this contribution!
  • Merged Fix: Sheet Properties Types #2327.
    Many thanks to @albeniraouf for this contribution!
  • Merged Use node 18 LTS for tsc, and benchmark. Add node 20. to test matrix. … #2354.
    Many thanks to @Siemienik for this contribution!
  • Merged Add missing tooltip attribute to CellHyperlinkValue index.d.ts #2350.
    Many thanks to @NiklasPor for this contribution!
  • Merged Increase resilience to generating large workbooks #2320.
    Many thanks to @hfhchan-plb for this contribution!
  • Merged repair all 'c2fo.io' links ('c2fo.github.io') #2324.
    Many thanks to @justintunev7 for this contribution!
  • Merged fix: fix type definitions about last column, formula values and protection #2309.
    Many thanks to @gltjk for this contribution!
  • Merged fix: add spinCount field for WorksheetProtection type #2284.
    Many thanks to @damingerdai for this contribution!
  • Merged Add type definition for WorksheetModel.merges #2281.
    Many thanks to @ytjmt for this contribution!

Contributions

Contributions are very welcome! It helps me know what features are desired or what bugs are causing the most pain.

I have just one request; If you submit a pull request for a bugfix, please add a unit-test or integration-test (in the spec folder) that catches the problem. Even a PR that just has a failing test is fine - I can analyse what the test is doing and fix the code from that.

Note: Please try to avoid modifying the package version in a PR. Versions are updated on release and any change will most likely result in merge collisions.

To be clear, all contributions added to this library will be included in the library's MIT licence.

Let's chat together:

Contents

  • Importing
  • Interface
    • Create a Workbook
    • Set Workbook Properties
    • Workbook Views
    • Add a Worksheet
    • Remove a Worksheet
    • Access Worksheets
    • Worksheet State
    • Worksheet Properties
    • Page Setup
    • Headers and Footers
    • Worksheet Views
      • Frozen Views
      • Split Views
    • Auto Filters
    • Columns
    • Rows
      • Add Rows
      • Handling Individual Cells
      • Merged Cells
      • Insert Rows
      • Splice
      • Duplicate Row
    • Defined Names
    • Data Validations
    • Cell Comments
    • Tables
    • Styles
      • Number Formats
      • Fonts
      • Alignment
      • Borders
      • Fills
      • Rich Text
    • Conditional Formatting
    • Outline Levels
    • Images
    • Sheet Protection
    • File I/O
      • XLSX
        • Reading XLSX
        • Writing XLSX
      • CSV
        • Reading CSV
        • Writing CSV
      • Streaming I/O
        • Streaming XLSX
  • Browser
  • Value Types
    • Null Value
    • Merge Cell
    • Number Value
    • String Value
    • Date Value
    • Hyperlink Value
    • Formula Value
      • Shared Formula
      • Formula Type
      • Array Formula
    • Rich Text Value
    • Boolean Value
    • Error Value

Issues· 813 open

View all issuesOpen on GitHub
  • #2797

    [BUG] TypeError: Cannot read properties of undefined (reading 'comments')

    Updated Sep 28, 2026
  • #3077

    [BUG] Snyk security finding

    Updated Sep 22, 2026
  • #3084

    Documonster, a modern ExcelJS based alternative

    Updated Sep 17, 2026
  • #683

    Getting 'sharredString's when trying to parse XSLX in the streaming mode

    bugproposalUpdated Sep 16, 2026
  • #3079

    xlsx.load throws "Cannot create property 'richText' on string" when a shared string mixes a bare <t> with <r> runs

    Updated Sep 13, 2026
  • #3082

    Vite/Rollup build fails to resolve regenerator-runtime/runtime imported by exceljs.browser.js

    Updated Sep 9, 2026
  • #3080

    xlsx.load fails with "Worksheet name already exists" for any sheet name over 31 characters — the name setter collides with itself

    Updated Sep 8, 2026
  • #2604

    [F] Ability to add a formula within the Name Manager

    Updated Aug 30, 2026
  • #261

    Losing formatting/pivot table from loaded file

    bugenhancementUpdated Aug 25, 2026
  • #106

    Microsoft Excel needs to recover XLSX before opening

    bugenhancementUpdated Aug 25, 2026

> Tags

JavaScriptcsvexceljshacktoberfeststreaming-workbook

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言