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 🙏

© 2024 – Pkg Stats / Ryan Hefner

grunt-mdeb

v0.1.0

Published

Grunt task to publish markdown docs as EPUB 3.0 book.

Downloads

1

Readme

grunt-mdeb

Grunt task to publish markdown docs as EPUB 3.0 book.

Features

  • Compile markdown files to EPUB data.
  • Automatically generate indexes and output as navigation documents.

Example

Install

$ npm install grunt-mdeb

Files and Directories

/
├ dest/
├ src/
│ ├ assets/
│ │ ├ img/
│ │ └ css/
│ ├ data/
│ │ ├ cover.md
│ │ ├ 01.md
│ │ ├ 02.md
│ │ ├ 03.md
│ │ └ ...
│ └ publish.json
└ Gruntfile.js

Configure "publish.json"

{
	"meta": {
		"name": "document",
		"title": "My First Book",
		"author": "mach3",
		"publisher": "matsukaze.",
		"description": "This is my first book",
		"language": "en",
		"identifier": "http://example.com/books/my-first-book",
		"navTitle": "Table of Contents"
	},
	"assets": {
		"commonStyle": "assets/css/common.css",
		"navStyle": "assets/css/nav.css",
		"pageStyle": "assets/css/page.css",
		"coverStyle": "assets/css/cover.css",
		"coverImage": "assets/img/cover.png"
	},
	"items": [
		"data/cover.md",
		"data/01.md",
		"data/02.md",
		"data/03.md",
		...
	]
}

More options are available. Read document.epub (Japanese).

Configure Task

grunt.loadNpmTasks("grunt-mdeb");
grunt.initConfig({
	mdeb: {
		dest: {
			src: "src",
			dest: "dest"
		}
	}
});

And Go

$ grunt mdeb

Document and Demo

License

The MIT License

Author

mach3 http://github.com/mach3