npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pdf-markdown

v0.1.3

Published

Convert one or more Markdown files into a single PDF file

Downloads

32

Readme

PDF-MRKDWN

  • Combine and convert multiple Markdown (.md) files into a single PDF file
  • Configure page layout with settings and CSS.
  • pdf-mrkdwn depends on the wkhtmltopdf binary, which needs to be in the path.
    It is recommended to use the static version of the binary (wkhtmltopdf-static).

About the current release

The default configuration and CSS is suitable for creating standard novels. The next release will focus on providing more presets for other document types.

If the defaults are not suitable for you, you need to create your own CSS and configuration file. To export the defaults use the following commands:

  • pdf-markdown --cssToPath <target directory>
  • pdf-markdown --cfgToPath <target directory>

Installation

npm install -g pdf-markdown

Usage

pdf-markdown --help | [options...] [--config-file <file>.json] [--verbose]

Without options (or --input option) the pdf-markdown README file will be created as PDF in the current directory.

Base options:

--name              The name of the generated PDF file
                    Default: README

--input             Input directory. All markdown (.md) files. from
                    the directory will be added to the PDF file.
                    Default: the current directory

--output            The output directory of the generated PDF file.
                    Default: the current directory

--css               A css file used for styling
                    Default: built-in styling

Wkhtmltopdf options (The default is for creating a novel in standard size):

--zoom              Zoom level
                    Default: 1.5

--pageWidth         Page width in inches
                    Default: 5.5in
    
--pageHeight        Page height in inches
                    Default: 8.5in

--footerCenter      Elements to put in the page footer
                    Default: [page]

--footerFontSize    Font size used in the footer
                    Default: 8

--footerSpacing     Distance of the footer from the page edge
                    Default: 10                    

--marginBottom      Distance of the footer from the page contents
                    Default: 24

Export:

--cssToPath         Exports the default CSS to <provided path>/pdfMd.css

--cfgToPath         Exports the default configuration to <provided path>/pdfMd.json

Config file example (based on default options):

    {
        "name": "README",
        "output": ".",
        "wkhtmltopdf": {
            "zoom": "1.5",
            "pageWidth": "5.5in",
            "pageHeight": "8.5in",
            "footerCenter": "[page]",
            "footerFontSize": "8",
            "footerSpacing": "10",
            "marginBottom": "24"
        }
    }