UNPKG

md-html-to-pdf

Version:

CLI tool for converting Markdown files or Html files to PDF.

10 lines (9 loc) 293 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isMdFile = void 0; const extensions = /\.(md|mkd|mdown|markdown)(\.txt)?$/i; /** * Check whether a path is a markdown file. */ const isMdFile = (path) => extensions.test(path); exports.isMdFile = isMdFile;