https://github.com/rtk/html-to-pdf
https://github.com/rtk/html-to-pdf
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rtk/html-to-pdf
- Owner: RTK
- License: mit
- Created: 2025-02-03T20:46:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-20T08:07:07.000Z (over 1 year ago)
- Last Synced: 2025-02-20T09:23:59.808Z (over 1 year ago)
- Language: TypeScript
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# html-to-pdf
## Prerequisites
Install node.js runtime 22 or above
## Usage
### CLI
#### Option 1
Use `npx` to execute.
`npx github:RTK/html-to-pdf --input --output `
#### Option 2
Install as dependency
`npm i github:RTK/html-to-pdf -D`
`html-to-pdf --input --output `
### Arguments
#### input
Path to a local `.html` file (relative or absolute path) _or_ a HTTP-URL (scheme either https or http).
#### output
Path to a `.pdf`-File. Can be absolute or relative. Will write and overwrite any existing file.