Modules@robinpath/excel
@robinpath/excel
0.1.0PublicRead, write, and manipulate Excel spreadsheets (.xlsx)
@robinpath/excel
Read, write, and manipulate Excel spreadsheets (.xlsx) with sheets, cells, JSON/CSV conversion
Why use this module?
The excel module lets you:
- Read an Excel file into an array of row objects
- Write an array of objects to an Excel file
- List all sheet names in an Excel file
- Add a new sheet with data to an existing Excel file
- Convert an Excel file to JSON (shortcut for read().rows)
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/excel
Quick Start
No credentials needed — start using it right away:
excel.write "./output.xlsx" $data {"sheetName": "Users"}
Available Functions
| Function | Description |
|---|---|
excel.read | Read an Excel file into an array of row objects |
excel.write | Write an array of objects to an Excel file |
excel.readSheetNames | List all sheet names in an Excel file |
excel.addSheet | Add a new sheet with data to an existing Excel file |
excel.toJson | Convert an Excel file to JSON (shortcut for read().rows) |
excel.fromJson | Create an Excel file from JSON data |
excel.toCsv | Convert an Excel file to CSV string |
excel.getCell | Get a specific cell value |
excel.setCell | Set a specific cell value |
Examples
Write an array of objects to an Excel file
excel.write "./output.xlsx" $data {"sheetName": "Users"}
List all sheet names in an Excel file
excel.readSheetNames "./data.xlsx"
Add a new sheet with data to an existing Excel file
excel.addSheet "./data.xlsx" "Summary" $summaryData
Integration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/excel";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
excel.write "./output.xlsx" $data {"sheetName": "Users"}
`);
Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/pdf— PDF module for complementary functionality@robinpath/office— Office module for complementary functionality@robinpath/docusign— DocuSign module for complementary functionality@robinpath/pandadoc— PandaDoc module for complementary functionality@robinpath/hellosign— HelloSign module for complementary functionality
License
MIT
Versions (1)
| Version | Tag | Published |
|---|---|---|
| 0.1.0 | latest | yesterday |
Related Modules
productivity
0
@robinpath/airtable
v0.1.1robinpath
Airtable module for RobinPath.
0 downloads
...
productivity
0
@robinpath/asana
v0.1.1robinpath
Asana module for RobinPath.
0 downloads
...
productivity
0
@robinpath/basecamp
v0.1.1robinpath
Basecamp module for RobinPath.
0 downloads
...
productivity
0
@robinpath/clickup
v0.1.1robinpath
ClickUp module for RobinPath.
0 downloads
...
Install
$ robinpath install @robinpath/excel Version0.1.0
LicenseMIT
Unpacked Size5.1 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

