New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bv-react-data-report

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bv-react-data-report

ReactJS component to preview data and export it as PDF file.

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

bv-react-data-report

This is a ReactJS Component that generate a preview of data to be exported as PDF file.

The user will be able to choose the items per page, the page format (portrait / landscape) and the page size (a4 / letter / legal).

The package expose the libs to be overwritten if you want to customize any behavior.

Dependencies:

  • html2canvas
  • i18n-react
  • jspdf

Example:

To run the test:

  1. Clone the repository
  2. Execute in console:
yarn
yarn start

General Usage

import Report from 'bv-react-data-report';
import 'bv-react-data-report/dist/index.css';

Then, in the render method we can just call it like:

<Report data={[{ id: 1, value: 'Some value' }, { id: 2, value: 'Some other value' }]}/>

Where data is an array of objects as you can see in this example file.

Installation

Install this component is easy, just use npm as:

npm install bv-react-data-report html2canvas i18n-react jspdf

Or yarn

yarn add bv-react-data-report html2canvas i18n-react jspdf

Keywords

FAQs

Package last updated on 29 Feb 2020

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