Converts all markdown files in current directory to pdf files contained within a new directory 'pdfs' in the cwd.
With npm do:
npm install -g md-pdf-converter
- TRY IT OUT! Run the following command in your terminal:
$ convdir
- If you'd like to convert a specific file only, you still can:
$ convfile path/to/file.md
Simple as that
Uses the markdown-pdf 3rd party module to converts md files to pdfs.
md-pdf-converter is an extension of this module that converts all md files within the current directory into pdf files (if the respective pdf already exists then it's overwritten).
I like pdfs, I can now have all of my recent study notes that I've created in markdown readily available on my mobile as pdfs to for easy reading with one easy command. 'convdir'.
This new module will is intended to be installed globally so that when running the command 'convdir' all '.md' files in the current directory will be converted.
-
Implement a more meaningful progress bar to count ticks on each conversion. See ascii-progress.
-
Change the output directory to a folder on desktop using options. Enabling easier mobile-dropbox-sync.
-
If possible I would be able to set a watch method that on a directory executes the conversion when a new markdown file is created.
Check out the repo and contribute :)