# renderdo

> Renderdo client lirary

Latest version **1.0.0** (published 2022-12-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install renderdo
pnpm add renderdo
yarn add renderdo
bun add renderdo
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-12-25 |
| First published | 2022-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Imed Adel |
| Maintainers | imedadel |
| Keywords | html, url, pdf, render, renderdo, csv, json, api, client, library, convert |

## Links

- npm: https://www.npmjs.com/package/renderdo
- npm.io page: https://npm.io/package/renderdo

## Dependencies (2)

- [node-fetch](https://npm.io/package/node-fetch.md) 2
- [formdata-node](https://npm.io/package/formdata-node.md) 4

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.0 (latest) — 2022-12-25

## README

# Renderdo

[![npm version](https://badge.fury.io/js/renderdo.svg)](https://www.npmjs.com/package/renderdo)

Convert URLs, HTML content, and any file type to PDF using the [Renderdo](https://renderdo.com) client library

## Installation

To install the library, run the following command:

```bash
npm install renderdo
```

## Usage

Here's an example of how to use the library:

```javascript
const Renderdo = require("renderdo");

const client = new Renderdo("token-123");
const pdf = await client.convertURL("https://www.google.com/");
```

## API

### `convertURL(url: string): Promise<Buffer>`

Converts the URL to pdf

### `convertHTML(html: string): Promise<Buffer>`

Converts the HTML content to pdf

### `convertFile(file: Buffer): Promise<Buffer>`

Converts the file to pdf

## License

This library is licensed under the MIT License.

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