# html-to-pdf

To install dependencies:

```bash
bun install
```

To run:

```bash
bun run index.js
```

This project was created using `bun init` in bun v1.3.12. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.

# Usage

```sh
curl -X POST http://localhost:3000 --data-binary @file.html --output out.pdf
```

# Docker

```sh
docker build -t html-to-pdf .
docker run -p 3000:3000 html-to-pdf
```

```sh
curl -X POST http://localhost:3000 --data-binary @file.html --output out.pdf
```