/react-pdf-viewer

React PDF viewer component with zoom / pages loaded inline

Primary LanguageJavaScript

React PDF Viewer

Details

PDF.js viewer built with react

Dev Requires

  1. Node 6+
  2. Yarn

Dev Optional

  1. Plato - yarn global add plato (Used for code quality tests)

Setup

yarn install

Startup

  1. yarn start - Run with mock data

Testing

  1. yarn test - Run all unit tests
  2. yarn test:watch - Unit tests run with watch method
  3. yarn coverage - Runs code coverage report with Istanbul. Output to coverage folder and screen
  4. yarn quality - Runs code quality report. Output to quality folder

Build

yarn build - Builds with min/uglify prod rules to dist