Skip to content

SavageWilliam/md-pdf-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

md-pdf-converter

Converts all markdown files in current directory to pdf files contained within a new directory 'pdfs' in the cwd.

Install

With npm do:

npm install -g md-pdf-converter

Usage

  1. TRY IT OUT! Run the following command in your terminal:
$ convdir
  1. If you'd like to convert a specific file only, you still can:
$ convfile path/to/file.md

Simple as that :bowtie:

Preface

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).

Why?

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.

Whats next

  1. Implement a more meaningful progress bar to count ticks on each conversion. See ascii-progress.

  2. Change the output directory to a folder on desktop using options. Enabling easier mobile-dropbox-sync.

  3. 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.

Third-party Dependencies

Check out the repo and contribute :)

About

☕ npm module that converts all md files in a directory to pdfs with CLI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published