
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
sheetjs-formula-recalc
Advanced tools
Recalculate SheetJS and xlsx workbook formulas in Node.js without Excel, LibreOffice, or browser automation.
Recalculate SheetJS / xlsx formula workbooks in Node.js without opening
Excel, LibreOffice, or a browser.
Use this package when the rest of your pipeline already uses SheetJS or the
xlsx package for workbook file I/O, but a backend job needs fresh formula
readback after changing inputs.
SheetJS is good at reading and writing spreadsheet files. The common production gap is different:
SheetJS formula result not updatingxlsx formula value stale after editjs-xlsx recalculate formulasrefresh formula cells in xlsx nodeFormula cells can carry cached results. When a Node process edits Inputs!B2,
the cached value in Summary!B7 is not automatically recalculated inside that
process.
Use this package at the file boundary:
recalculateSheetjsWorkbook(...);result.reads;result.xlsx if the updated artifact is needed.This package is a SheetJS-named bridge over xlsx-formula-recalc, so teams
searching for a SheetJS answer can find the right boundary directly.
If the workflow might belong at the generic XLSX, ExcelJS, template, CI, WorkPaper, or agent boundary instead, use the stale formula readback chooser before installing another bridge.
npm install sheetjs-formula-recalc
Run a self-contained proof first:
npx --package sheetjs-formula-recalc sheetjs-recalc --demo --json
For a real workbook:
npx --package sheetjs-formula-recalc sheetjs-recalc quote.xlsx \
--set Inputs!B2=48 \
--set Inputs!B3=1500 \
--read Summary!B7 \
--out quote.recalculated.xlsx \
--json
The command writes the recalculated XLSX and prints the requested read cells.
import { readFile, writeFile } from 'node:fs/promises'
import { recalculateSheetjsWorkbook } from 'sheetjs-formula-recalc'
const result = recalculateSheetjsWorkbook(await readFile('quote.xlsx'), {
fileName: 'quote.xlsx',
edits: [
{ target: 'Inputs!B2', value: 48 },
{ target: 'Inputs!B3', value: 1500 },
],
reads: ['Summary!B7'],
})
await writeFile('quote.recalculated.xlsx', result.xlsx)
console.log({
value: result.reads['Summary!B7'],
warnings: result.warnings,
})
The repository includes a cross-library proof:
git clone https://github.com/proompteng/bilig.git
cd bilig
npm --prefix examples/recalc-bridge-workflows install
npm --prefix examples/recalc-bridge-workflows run smoke
It edits the same workbook through SheetJS/xlsx, xlsx-populate, and
ExcelJS, then verifies that Bilig refreshes the stale 48000 result to
72000.
This is not a full Excel clone and not a replacement for SheetJS file I/O. Keep SheetJS where it is strongest: parsing, writing, and transforming workbook files. Add this package only where the Node process must own recalculated formula readback before accepting, rejecting, returning, or persisting a workflow.
Review result.warnings and keep fixtures for unsupported functions, external
workbook links, macros, volatile functions, and customer-critical templates.
If the demo or a reduced SheetJS workbook returns the fresh formula values you needed, keep the repository and release feed nearby: https://github.com/proompteng/bilig.
Watch releases if this is close to a production workflow: https://github.com/proompteng/bilig/subscription.
If a SheetJS workbook still fails after a reduced test case, open the blocker with the formula, input cells, output cells, and warning output: https://github.com/proompteng/bilig/discussions/new?category=general.
FAQs
Recalculate SheetJS and xlsx workbook formulas in Node.js without Excel, LibreOffice, or browser automation.
The npm package sheetjs-formula-recalc receives a total of 3 weekly downloads. As such, sheetjs-formula-recalc popularity was classified as not popular.
We found that sheetjs-formula-recalc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.