New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@spce/pdfreader

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spce/pdfreader

PDF Reader component using PDF.js library

Source
npmnpm
Version
1.1.9
Version published
Weekly downloads
16
6.67%
Maintainers
0
Weekly downloads
 
Created
Source

ngager-pdfreader

PDF Reader component using PDF.js library

NPM JavaScript Style Guide

Install

npm install --save ngager-pdfreader

Example

https://ngager-group.github.io/ngager-pdfreader/

Usage

import React, { Component } from 'react'

import PDF from 'ngager-pdfreader'

class Example extends Component {
  render () {
    return (
      <PDF
        popup
        src="https://nclong87.github.io/file-example_PDF_500_kB.pdf"
        downloadable
        onRequestClose={() => this.setState({ open: false })}
        onLastPage={() => console.log('onLastPage')}
        onPageChanged={(currentPage) => console.log('currentPage', currentPage)}
      />
    )
  }
}

License

MIT © ngager-group

FAQs

Package last updated on 28 Jun 2024

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