jasper_nodejs 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +37 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # jasper_nodejs
2
+
3
+ Generate JasperReports from Node.js using JasperStarter / jasper binary.
4
+
5
+ ## ✨ Features
6
+
7
+ - Compile `.jrxml` to `.jasper`
8
+ - Export report to PDF / HTML / XLS / etc
9
+ - Support parameters
10
+ - Support database connection (Postgresql, Mysql)
11
+ - Works with pure Node.js or frameworks (AdonisJS, Express, etc)
12
+
13
+ ---
14
+
15
+ ## 📦 Installation
16
+
17
+ ```bash
18
+ npm install jasper_nodejs
19
+ ```
20
+
21
+ **Contoh penggunaan:**
22
+
23
+ ```js
24
+ await report.export({
25
+ reportFile: "./reports/sales.jasper",
26
+ outputDir: "./output",
27
+ format: "pdf",
28
+ db: {
29
+ driver: "postgres",
30
+ host: "localhost",
31
+ port: 5432,
32
+ dbname: "my_database",
33
+ username: "postgres",
34
+ password: "password",
35
+ },
36
+ });
37
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jasper_nodejs",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "wrapper jasper report untuk nodejs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",