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

mdtoimpress

v1.1.0

Published

A tool to convert markdown to impress page.

Readme

Markdown To Impress

A work in progress...

What is it

mdtoimpress is a tool to convert markdown to impress pages. Independent layout engines can exist to allow for different styles of presentation.

How to install

  • Firstly you should install nodejs
  • Then install it use $ npm install -g mdtoimpress

How To Use

$ mdtoimpress␍␊

  Must have input and output arg!

  Usage: mdtoimpress [options]

  Options:

    -h, --help             output usage information
    -V, --version          output the version number
    -i, --input <path>     Input markdown file path
    -o, --output <path>    Impress html file output path
    -l, --layout <layout>  layout engine to use (linear, radial)
    -v, --verbose          Switch on verbose output

  Examples:

    $ mdtoimpress -i file.md -o file.html -l linear

Layout engines

There are Three Layout Engines

Manual Layout

  • use ------ to separate each slide
  • use comment to set impress attr, such as <!-- x=0 y=0 rotate=0 -->
  • this page is made by markdown-impress use this markdown. $ mdtoimpress -i file.md -o file.html -l manual

Automatic Layout

  • Use a blank line and hash-heading (i.e. ## example ) to separate each slide

Linear Layout

  • Slides are positioned left-to-right automatically $ mdtoimpress -i file.md -o file.html -l linear

Radial Layout

  • Slides are positioned in a circle according to heading depth $ mdtoimpress -i file.md -o file.html -l radial

Hacking

Use in your code

var fs = require('fs');
var mtoi = require('markdown-impress');
var content = mtoi('file.md');
fs.writeFileSync('file.html', content);

Writing a new Layout Engine

The best way to write a new layout engine is to clone one that's there already and change it until it fits your requirements. If you copy linear.js and call it vertical.js then it would be used with -l vertical without any more configuration.

Layout Engines export four things.

  1. splitter - a regular expression used to identify a slide boundary e.g. /^(#+.*)$/mg
  2. keepSplitterMatch - a boolean which if true will keep the content that's matched by the regex. If false whatever is matched is discarded and forms no part of the final document.
  3. overview is a function which, if present, is called in order to add an additional overview slide to the deck.
  4. layout is a function that receives the markdown and returns HTML.

Who made it?

The original code was by steel1990. This was missing a few fetures needed by ear1grey who added selectable layout engines, so that the original comment-based layouts could still work, but also, completely automatic layouts (capable of formatting pure unmodified MD) could also be laid out.