# rti-lab-pdf-kit-js

> Vanilla js library exporting Pdf viewer using [PDF.js](https://github.com/mozilla/pdf.js).

Latest version **1.0.0** (published 2023-10-27) · UNLICENSED license · 0 weekly downloads

## Install

```sh
npm install rti-lab-pdf-kit-js
pnpm add rti-lab-pdf-kit-js
yarn add rti-lab-pdf-kit-js
bun add rti-lab-pdf-kit-js
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-10-27 |
| First published | 2023-10-27 |
| Weekly downloads | 0 |
| License | UNLICENSED |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 18 |
| Dependencies | 3 |
| Unpacked size | 7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Luca Ziliani |
| Maintainers | lzdshare |

## Links

- npm: https://www.npmjs.com/package/rti-lab-pdf-kit-js
- Repository: https://github.com/MDS-BD/rti-lab-pdf-kit-js
- Homepage: https://github.com/MDS-BD/rti-lab-pdf-kit-js#readme
- Issues: https://github.com/MDS-BD/rti-lab-pdf-kit-js/issues
- npm.io page: https://npm.io/package/rti-lab-pdf-kit-js

## Dependencies (3)

- [pdfjs-dist](https://npm.io/package/pdfjs-dist.md) ^3.11.174
- [@mds-bd/log](https://npm.io/package/@mds-bd/log.md) ^2.1.1
- [typescript-plugin-css-modules](https://npm.io/package/typescript-plugin-css-modules.md) 5.0.2

## Recent versions

- 1.0.0 (latest) — 2023-10-27

## README

# Rti Lab Pdf Kit Js

Vanilla js library exporting Pdf viewer using [PDF.js](https://github.com/mozilla/pdf.js).

## Table of Contents

- [Rti Lab Pdf Kit Js](#rti-lab-pdf-kit-js)
  - [Table of Contents](#table-of-contents)
  - [Setup](#setup)
  - [Development](#development)
  - [Build](#build)
  - [Usage example](#usage-example)

## Setup

`nvm` and `pnpm` are required.

- Instal `nvm`.

- Run `nvm i` and `npm install -g pnpm`.

## Development

```bash
nvm use
pnpm install
```

During development run this command to start dev server with a sample application

```bash
pnpm dev
```

## Build

This project can build for `esm`, `commonjs`,`iife`, `umd` targeting `es6`. Additionally can target `es5` (`TARGET=es5 pnpm build`).

```bash
pnpm build-all
```

## Usage example

```tsx
import { PdfViewer } from "../src/index.js";

const container = document.getElementById("app") as HTMLDivElement;
const pdfViewer = new PdfViewer({ container });
pdfViewer.open("<pdf_url>").then(...).catch(...);
```

---
_Source: https://npm.io/package/rti-lab-pdf-kit-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
