Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gxiang314/url2pdf

a batch url to pdf converter
https://github.com/gxiang314/url2pdf

batch nodejs puppeteer typescript url2pdf webpage2pdf

Last synced: 26 days ago
JSON representation

a batch url to pdf converter

Awesome Lists containing this project

README

        

# Url2Pdf Node Project
a batch url to pdf converter

## Prerequisites

* Node 18 LTS

## Quick Start

#### Prepare `data.json` to `input`
```bash
cp input/data.example.json input/data.json
```

schema:

```json
[
{
"url": "",
"title": "pdf title"
}, ...
]
```

#### Installation

```bash
npm ci
```

#### Run/Development Mode

```bash
npm run dev
```

will be output a directory to `outputs`

```shell
input/
├── data.json
outputs/
├── 171555555555
│ ├── 1.pdf
│ ├── 2.pdf
│ └── ...
```

#### Build

```bash
npm run build
```

#### Production Mode

```bash
npm start
```
> `npm run build` before run this command
> run this command will be output a directory to `outputs`