aspose.cells 24.6.0 → 24.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,17 +1,13 @@
1
- Aspose.Cells for Node.js via Java is a scalable and feature-rich API to create, process, manipulate & convert Excel & OpenOffice spreadsheets using Node.js. API offers Excel file generation, conversion, worksheets styling, Pivot Table & chart management & rendering, reliable formula calculation engine and much more - all without any dependency on Office Automation or Microsoft Excel®.
2
-
3
- ## Node.js Spreadsheet API Features
4
- - Generate Excel files via API or using templates.
5
- - Create Pivot Tables, charts, sparklines & conditional formatting rules on-the-fly.
6
- - Refresh existing charts & convert charts to images or PDF.
7
- - Create & manipulate comments & hyperlinks.
8
- - Set complex formulas & calculate results via API.
9
- - Set protection on workbooks, worksheets, cells, columns or rows.
10
- - Create & manipulate named ranges.
11
- - Populate worksheets through Smart Markers.
12
- - Manipulate & refresh Pivot Tables via API.
13
- - Convert worksheets to PDF, XPS & SVG formats.
14
- - Inter-convert files to popular Excel formats.
1
+ Aspose.Cells for Node.js via C++ is a powerful and robust library designed for high-performance spreadsheet manipulation and management within Node.js applications. It offers a comprehensive set of features that enable developers to create, edit, convert, and render Excel files programmatically. Supporting all major Excel formats, including XLS, XLSX, XLSM, and more, it ensures compatibility and flexibility. This makes Aspose.Cells for Node.js via C++ a versatile tool for a wide range of data processing and management tasks, providing developers with a complete and efficient solution for integrating comprehensive Excel functionality into their Node.js applications.
2
+
3
+ ## Key features
4
+ - **File Creation and Editing:** Create new spreadsheets from scratch or edit existing ones with ease. This includes adding or modifying data, formatting cells, managing worksheets, and more.
5
+ - **Data Processing:** Perform complex data manipulations such as sorting, filtering, and validation. The library also supports advanced formulas and functions to facilitate data analysis and calculations.
6
+ - **File Conversion**: Convert Excel files to various formats such as PDF, HTML, ODS, and image formats like PNG and JPEG. This feature is useful for sharing and distributing spreadsheet data in different formats.
7
+ - **Chart and Graphics**: Create and customize a wide range of charts and graphics to visually represent data. The library supports bar charts, line charts, pie charts, and many more, along with customization options for design and layout.
8
+ - **Rendering and Printing**: Render Excel sheets to high-fidelity images and PDFs, ensuring that the visual representation is accurate. The library also provides options for printing spreadsheets with precise control over page layout and formatting.
9
+ - **Advanced Protection and Security**: Protect spreadsheets with passwords, encrypt files, and manage access permissions to ensure data security and integrity.
10
+ - **Performance and Scalability**: Designed to handle large datasets and complex spreadsheets efficiently, Aspose.Cells for Node.js via C++ ensures high performance and scalability for enterprise-level applications.
15
11
 
16
12
  ## Read & Write Excel Files
17
13
  **Microsoft Excel:** XLS, XLSX, XLSB, XLTX, XLTM, XLSM, XML
@@ -24,62 +20,67 @@ Aspose.Cells for Node.js via Java is a scalable and feature-rich API to create,
24
20
  **Images:** JPEG, PNG, BMP, SVG, TIFF, GIF, EMF
25
21
  **Text:** CSV, Tab-Delimited, JSON, SQL, XML
26
22
 
27
- ## Getting Started with Aspose.Cells for Nodejs via Java
23
+ ## Support multiple operating systems and CPU architectures, including:
24
+ - **Windows x64**
25
+ - **Linux x64**
26
+ - **macOS x64 & arm64**
27
+
28
+ ## Getting Started with Aspose.Cells for Node.js via C++
28
29
  ### Installation
29
30
 
30
31
  From the command line:
31
32
 
32
33
  npm install aspose.cells --save
33
34
 
34
- ### Create Excel XLSX File from Scratch using Node.js
35
+ ### Create Excel XLSX File from Scratch
35
36
  ``` js
36
- var aspose = aspose || {};
37
- aspose.cells = require("aspose.cells");
37
+ const AsposeCells = require("aspose.cells");
38
38
 
39
- var workbook = new aspose.cells.Workbook(aspose.cells.FileFormatType.XLSX);
40
- workbook.getWorksheets().get(0).getCells().get("A1").putValue("testing...");
41
- workbook.save("output.xlsx");
39
+ var workbook = new AsposeCells.Workbook(AsposeCells.FileFormatType.Xlsx);
40
+ workbook.getWorksheets().get(0).getCells().get("A1").putValue("Hello World");
41
+ workbook.save("hello-world.xlsx");
42
42
  ```
43
43
 
44
- ### Convert Excel XLSX File to PDF using Node.js
44
+ ### Convert Excel XLSX File to PDF
45
45
  ``` js
46
- var aspose = aspose || {};
47
- aspose.cells = require("aspose.cells");
46
+ const { Workbook } = require("aspose.cells");
48
47
 
49
- var workbook = new aspose.cells.Workbook("example.xlsx");
50
- var saveOptions = aspose.cells.PdfSaveOptions();
51
- saveOptions.setOnePagePerSheet(true);
52
- workbook.save("example.pdf", saveOptions);
48
+ var workbook = new Workbook("example.xlsx");
49
+ workbook.save("pdf-example.pdf");
53
50
  ```
54
51
 
55
- ### Format Excel Cells via Node.js
52
+ ### Format Excel Cells
56
53
  ```js
57
- var aspose = aspose || {};
58
- aspose.cells = require("aspose.cells");
54
+ const { Workbook, Color } = require("aspose.cells");
59
55
 
60
- var excel = new aspose.cells.Workbook();
61
- var style = excel.createStyle();
56
+ var workbook = new Workbook();
57
+ var style = workbook.createStyle();
62
58
  style.getFont().setName("Times New Roman");
63
- style.getFont().setColor(aspose.cells.Color.getBlue());
64
- for (var i = 0; i < 100; i++)
65
- {
66
- excel.getWorksheets().get(0).getCells().get(0, i).setStyle(style);
59
+ var blue = new Color(0, 0, 0xff);
60
+ style.getFont().setColor(blue);
61
+ for (var i = 0; i < 10; i++) {
62
+ var cell = workbook.getWorksheets().get(0).getCells().get(0, i);
63
+ cell.putValue(i);
64
+ cell.setStyle(style);
67
65
  }
66
+ workbook.save("style-example.xlsx");
68
67
  ```
69
68
 
70
- ### Add Picture to Excel Worksheet with Node.js
69
+ ### Add Picture to Excel Worksheet
71
70
  ```js
72
- var aspose = aspose || {};
73
- aspose.cells = require("aspose.cells");
71
+ const { Workbook, SaveFormat } = require("aspose.cells");
74
72
 
75
- var workbook = new aspose.cells.Workbook();
73
+ var workbook = new Workbook();
76
74
  var sheetIndex = workbook.getWorksheets().add();
77
75
  var worksheet = workbook.getWorksheets().get(sheetIndex);
78
76
 
79
77
  // adding a picture at "F6" cell
80
78
  worksheet.getPictures().add(5, 5, "image.gif");
81
79
 
82
- workbook.save("output.xls", aspose.cells.SaveFormat.EXCEL_97_TO_2003);
80
+ workbook.save("picture-example.xls", SaveFormat.Excel97To2003);
83
81
  ```
84
82
 
85
- [Product Page](https://products.aspose.com/cells/nodejs-java) | [Product Documentation](https://docs.aspose.com/display/cellsnodejsjava/Aspose.Cells+for+Node.js+via+Java+Home) | [Blog](https://blog.aspose.com/category/cells/) |[API Reference](https://apireference.aspose.com/cells/nodejs) | [Source Code Samples](https://github.com/aspose-cells/Aspose.Cells-for-Java) | [Free Support](https://forum.aspose.com/c/cells) | [Temporary License](https://purchase.aspose.com/temporary-license)
83
+ # Note
84
+ Starting from v24.7.0, Aspose.Cells for Node.js via Java has been migrated to [aspose.cells.java](https://www.npmjs.com/package/aspose.cells.java).
85
+
86
+ [Product Page](https://products.aspose.com/cells/nodejs-cpp) | [Product Documentation](https://docs.aspose.com/cells/nodejs-cpp/) | [Blog](https://blog.aspose.com/categories/aspose.cells-product-family/) |[API Reference](https://reference.aspose.com/cells/nodejs-cpp) | [Free Support](https://forum.aspose.com/c/cells) | [Temporary License](https://purchase.aspose.com/temporary-license)
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ const { spawnSync } = require('child_process');
4
+
5
+ const args = ['install', '--fallback-to-build=false'];
6
+ if (process.platform == "linux") {
7
+ let regex = /^(\d+)\./;
8
+ let match = process.versions.openssl.match(regex);
9
+ let major = match ? match[1] : null;
10
+ if (major == '1') {
11
+ args.push('--toolset=-legacy');
12
+ }
13
+ }
14
+
15
+ let { status } = spawnSync('node-pre-gyp', args, {
16
+ shell: true,
17
+ stdio: 'inherit'
18
+ });
19
+
20
+ if (status) {
21
+ process.exit(1);
22
+ }
package/package.json CHANGED
@@ -1,11 +1,20 @@
1
1
  {
2
2
  "name": "aspose.cells",
3
- "version": "24.6.0",
4
- "description": "A powerful library for manipulating and converting Excel (XLS, XLSX, XLSB), ODS, CSV and HTML files.",
5
- "main": "index.js",
3
+ "version": "24.7.0",
4
+ "description": "Aspose.Cells for Node.js via C++ is a high-performance and powerful library for manipulating and converting Excel (XLS, XLSX, XLSB), ODS, CSV, and HTML files, offering a comprehensive set of features for creating, editing, converting, and rendering spreadsheets within Node.js applications.",
5
+ "main": "./lib/aspose.cells.js",
6
+ "types": "./lib/types.d.ts",
7
+ "binary": {
8
+ "module_name": "aspose.cells.nodejs",
9
+ "module_path": "./lib",
10
+ "remote_path": "./aspose-cells/aspose.cells-for-nodejs/releases/download/v{version}",
11
+ "package_name": "{module_name}-v{version}-{platform}{toolset}-{arch}.tar.gz",
12
+ "host": "https://github.com/"
13
+ },
6
14
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
15
+ "install": "node download-aspose.cells.js"
8
16
  },
17
+ "engines" : { "node" : ">=12" },
9
18
  "keywords": [
10
19
  "Excel",
11
20
  "XLS",
@@ -32,11 +41,9 @@
32
41
  "XML"
33
42
  ],
34
43
  "author": "Aspose",
35
- "license": "End User License Agreement.html",
44
+ "license": "Commercial",
45
+ "homepage": "https://www.aspose.com",
36
46
  "dependencies": {
37
- "java": ">=0.14.0"
38
- },
39
- "directories": {
40
- "lib": "lib"
47
+ "@mapbox/node-pre-gyp": "^1.0.11"
41
48
  }
42
- }
49
+ }
package/index.js DELETED
@@ -1,2 +0,0 @@
1
-
2
- module.exports = require("./lib/aspose.cells");
Binary file
Binary file