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

gulp-remark-handlebars

v0.3.0

Published

Render markdown in handlebars templates.

Readme

gulp-marked-mustache

Markdown with Mustache templates populated using YAML front-matter.

Installation

$ npm install --save-dev gulp-marked-mustache

Basic usage

'use strict';

var gulp = require('gulp');
var markedMustache = require('gulp-marked-mustache');

gulp.task('markdown', function () {
  gulp.src('./markdown/*.md')
    .pipe(markedMustache(options))
    .pipe(gulp.dest('./dist'));
});

API

options

This package uses marked, Mustache.js and node-toc, although with slightly different defaults. You can pass through options for most of these components.

markdown

Type: object

Accepts any valid marked options.

partials

Type: object

An object containing any Mustache partials. This correlates with the partials parameter in the Mustache.render() method. Note that the other two parameters, template and view, are populated automatically based on the Markdown file's front matter and content.

templatePath

Type: string

The path to the Mustache templates, including trailing slash. Defaults to ./default/

toc

Type: object, boolean

Accepts any valid node-toc options. Set to false to globally disable inclusion.

updateLinks

Type: boolean

Updates relative links to Markdown documents to their HTML equivalent. For example, <a href="index.md"> would be changed to <a href="index.html">, but <a href="http://www.example.com/index.md"> would not be affected.

Front Matter

All front matter in markdown is added to the Mustache view. In addition, the template field will select the corresponding Mustache template, while the toc field can be set to false to prevent the table of contents from being included.

Mustache templating

Almost any fields added to the Markdown file's front matter are accessible within the template.

The two exception are body and toc. The former contains the rendered HTML of the markdown body; the latter either contains the raw HTML of the table of contents, or is not present if the table of contents is not included.

At its simplest, your template may look something like this:

<!DOCTYPE html>
<html>

    <head>

        <title>{{title}}</title>

    </head>

    <body>

        {{{body}}}

        {{{toc}}}

    </body>

</html>

Note the triple mustache on the body and toc variables, as these are raw HTML.