CLI tool wrapper around md-to-pdf
to convert multiple .md
notes to .pdf
.
npm install -g bulk-md-to-pdf
-
build <notesDirPath>
(aliasb
): Converts*.md
files innotesDirPath
to*.pdf
filesE.g.,
bulk-md-to-pdf build ./notes
(orbulk-md-to-pdf b ./notes
) -
open-build
(aliaso
): Opens the build folder -
clean
(aliasc
): Removes all built*.pdf
files
Example:
$ pwd
~/test
$ ls
test.md test1.md
$ bulk-md-to-pdf build `pwd`
No build folder found, creating it...
No files to clean in ~/test/build
Converted 2 md files (~/test/) to pdf files (~/test/build/)
$ ls build/
test.pdf test1.pdf
Link bin locally: npm link
(run in project folder root)
CLI should now be available globally via bulk-md-to-pdf <command> [options]
.
Alternatively, CLI can be used locally through an npm
script via npm start <command> [options]
, other npm
scripts include:
npm run build <notesDirPath>
npm run clean