1.0.6 • Published 4 years ago
pawdf v1.0.6
Pawdf
A CLI tool for generating pdf from markdown files.
Requirements
- Node.js 11.0 or higher.
- npm or yarn
Using Pawdf
- Open up your terminal
- Run
npm i -g pawdf
or...
- clone this repo
- open folder in terminal
- run
npm i -g
to use pawdf, open your terminal and type the pawdf
command followed by two flags:
- -f, --file, relative path to markdown file to be converted.
- -o, --output, name of the generated pdf file.
- -p, --path (optional), relative path for saving the pdf file. if none given, it saves the file in the same folder as the markdown file.
example:
pawdf -f index.md -o index # generates index.pdf on the same folder
using relative paths:
pawdf -f ../index.md -o index -p ./ # generates index.pdf on actual folder from index.md one folder above.
Contributing
As this is supposed to be used only by me (at least I think it will), I don't think if anyone would be interested in contributing to the repo, but if one wants to, feel free to add any PR or sugestion.