jasper_nodejs 1.0.1 → 1.0.3
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 +32 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,6 +12,35 @@ Generate JasperReports from Node.js using JasperStarter / jasper binary.
|
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
+
## ☕ Java Requirement
|
|
16
|
+
|
|
17
|
+
This package requires **Java (JRE or JDK)** to be installed.
|
|
18
|
+
|
|
19
|
+
### Supported Versions
|
|
20
|
+
|
|
21
|
+
- Java 8
|
|
22
|
+
|
|
23
|
+
### Check Java installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
java -version
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## 🐧 Java Linux Installation (Ubuntu / Debian)
|
|
30
|
+
|
|
31
|
+
### Install Java
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
sudo apt update
|
|
35
|
+
sudo apt install -y openjdk-8-jre
|
|
36
|
+
|
|
37
|
+
## 🐧 Java Windows Installation
|
|
38
|
+
|
|
39
|
+
### Install Java
|
|
40
|
+
|
|
41
|
+
https://www.java.com/en/download/manual.jsp
|
|
42
|
+
```
|
|
43
|
+
|
|
15
44
|
## 📦 Installation
|
|
16
45
|
|
|
17
46
|
```bash
|
|
@@ -21,7 +50,9 @@ npm install jasper_nodejs
|
|
|
21
50
|
**Contoh penggunaan:**
|
|
22
51
|
|
|
23
52
|
```js
|
|
24
|
-
|
|
53
|
+
import ReportService from "jasper_nodejs";
|
|
54
|
+
|
|
55
|
+
await ReportService.export({
|
|
25
56
|
reportFile: "./reports/sales.jasper",
|
|
26
57
|
outputDir: "./output",
|
|
27
58
|
format: "pdf",
|