Aspose.Cells FOSS for TypeScript is a free, open-source library for working with spreadsheet files in TypeScript applications. Install it with npm install @aspose/cells@1.0.0 and start creating workbooks, reading cells, applying styles, building charts, and exporting to XLSX, CSV, Markdown, JSON, or HTML – all without requiring Microsoft Excel or any Office dependency.
The library exposes a clean API built around Workbook, Worksheet, Cell, and Style – the familiar objects every spreadsheet developer knows. Read and write cells using putValue(), style them with Style, Font, and Fill objects, add charts via ChartCollection, and set up data validation, auto-filters, comments, and hyperlinks on any worksheet.
Because the library has no dependency on native Office libraries, it runs identically on Windows, Linux, and macOS CI runners, Docker containers, and serverless environments. The codebase is MIT-licensed, hosted on GitHub, and accepts bug reports and pull requests. Developers who need the complete commercial API with full production support can use Aspose.Cells for TypeScript alongside these open-source resources.
Workbook.load() and save with workbook.save() preserving cell values, formulas, and styles.worksheet.putValue() and worksheet.getCell() by row/column index or cell reference.cell.setFormula() – stored verbatim in XLSX, evaluated by Excel or LibreOffice on open.WorksheetCollection methods including addWorksheet(), removeWorksheet(), and moveWorksheet().workbook.toCsv().workbook.toMarkdown().Style with setBold(), setItalic(), setFontSize(), and setFontColor().numFmtId in Style.ChartCollection and render chart data via ChartRenderer.addShape() supporting rectangles, ellipses, arrows, connectors, and more via the ShapeInfo hierarchy.workbook.save() or dedicated methods like toJson(), toCsv(), toMarkdown(), and toHtml().HtmlReader and export styled workbooks with HtmlExporter.workbook.protect(true, "password").style.setLocked(true) and control formula visibility with style.setHidden().DataValidation and worksheet.addDataValidation().worksheet.setAutoFilter() and remove filters with removeAutoFilter().ConditionalFormatCollection with ColorScaleRule, DataBarRule, and IconSetRule.Comment objects via worksheet.addComment().Aspose.Cells FOSS for TypeScript is installable with a single npm install @aspose/cells@1.0.0 command. There are no native Office libraries or system packages to install. The library runs on any Node.js environment with TypeScript 5+ support.
The API covers Workbook, Worksheet, Cell, Style, Font, Fill, Chart, DataValidation, AutoFilter, Comment, Hyperlink, and Shape – the core objects for real-world spreadsheet automation. The codebase is MIT-licensed, hosted on GitHub, and accepts bug reports and pull requests.
Create a workbook, write different value types to cells, and set formulas that Excel evaluates on open.
const workbook = new Workbook();
const worksheet = workbook.worksheets[0]!;
worksheet.putValue("A1", 42);
worksheet.putValue("A2", 3.14159);
worksheet.putValue("A3", "Hello World");
const cellA4 = worksheet.getCell2("A4");
cellA4.setFormula("=SUM(A1:A2)");
await workbook.save("output.xlsx");
Set font name, size, bold, italic, and color on a cell using the Style class.
const workbook = new Workbook();
const worksheet = workbook.worksheets[0]!;
const style = new Style();
style.setFontName("Arial");
style.setFontSize(14);
style.setBold(true);
style.setItalic(true);
style.setFontColor("FF0000");
const cell = worksheet.getCell2("A1");
cell.putValue("Styled Text");
cell.setStyle(style);
await workbook.save("styled.xlsx");
Populate a data range and enable auto-filter headers for interactive column filtering in Excel.
const workbook = new Workbook();
const worksheet = workbook.worksheets[0]!;
worksheet.putValue("A1", "Name");
worksheet.putValue("B1", "Age");
worksheet.putValue("C1", "City");
worksheet.putValue("A2", "Alice");
worksheet.putValue("B2", "25");
worksheet.putValue("C2", "New York");
worksheet.putValue("A3", "Bob");
worksheet.putValue("B3", "30");
worksheet.putValue("C3", "London");
worksheet.setAutoFilter("A1:C4");
await workbook.save("filtered.xlsx");
It is a free, MIT-licensed TypeScript library for creating, reading, modifying, and exporting Excel spreadsheets without requiring Microsoft Office.
XLSX for read/write. Export-only formats include CSV, JSON, Markdown, and HTML. HTML can also be imported via HtmlReader.
No. Aspose.Cells FOSS is a pure TypeScript library with no dependency on Microsoft Office, COM automation, or any proprietary runtime.
Run npm install @aspose/cells@1.0.0. No additional system packages or native extensions are required.
Yes. Use the Style class with methods like setBold(), setItalic(), setFontSize(), setFontName(), and setFontColor() to style individual cells.
Yes. Call workbook.protect(true, “password”) to protect a workbook with a password. Individual cells can be locked with style.setLocked(true).