Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gxiang314/url2pdf
- Owner: GXiang314
- License: mit
- Created: 2024-08-01T03:30:54.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-19T13:03:00.000Z (3 months ago)
- Last Synced: 2024-10-10T20:01:34.695Z (26 days ago)
- Topics: batch, nodejs, puppeteer, typescript, url2pdf, webpage2pdf
- Language: TypeScript
- Homepage:
- Size: 56.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`