Skip to main content
XlsxEditor from @reductoai/xlsx/editor is the editor without a UI. It holds a selection and runs Home-tab commands on it, with undo and redo. The editor UI runs on it; you can also use it in Node or in tests.
Rows and columns in commands are one-based, as in R1C1 notation. The core Worksheet methods are zero-based.

Commands

Each command is an XlsxCommand object with a type. The main ones: apply returns the block of cells it changed, or null. A command that Microsoft Excel refuses throws an error.