Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-json-jasper

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-json-jasper

A node module to generate jasper reports using JasperStarter

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

node-json-jasper

A simple node library to generate Jasper Reports using JasperStarter with json files.


Required

NodeJS Version 16.x.x or greater Java 8 installed


Usage

npm install node-json-jasper

    const {generateReport} = require("node-json-jasper")

let report = generateReport(reportName ,jasperReport ,reportOutput, jsonPath, {exportType:"pdf",bufferRetrun:true})

generateReport (options,{Optional Parameters})

OptionsInformation
reportName(string) Name that will be saved the report on output folder
jasperReport(string) The full path to the .jrxml or .jasper file
reportOutput(string) The full path were the report will be generated
jsonPath(string) The full path to the json file that will be used to fill the report
Optional ParametersInformation
exportType(string) The type of the exported file ("pdf", "docx", "xlsx", "pptx", "rtf", "html", "xhtml", "xml")
jsonQuery(string) The key that will be used on the json to filter on report
parameters(object) A Simple object with key-value to used as Parameter on the jasper report
bufferReturn(bool) When true the file saved on output folder will be opened return the buffer of file and delete

Thanks

Created based on Lavela php solution Thanks Raphael for always helping with this things


Upcoming Features

Option to pass JSON Object to generate the report


Me

Luiz Mello

Keywords

FAQs

Package last updated on 27 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc