node package manager


Markdown in your console


Consoul is a markdown renderer for the terminal. You might say it adds some soul to your console? I'm so sorry.

var consoul = require('consoul');
consoul.fromFile('./', function (err, output) {
process.stdout.write(consoul.fromString('# Hello World!'));

We wanted to write markdown documentation for our grunt tasks. We wanted to be able to display that documentation when running grunt help. Whatevs.

Consoul uses the marked Markdown parser. It overrides a few methods to render console appropriate stuff instead of HTML. It uses a (hacked!) version of highlight.js to do the syntax highlighting.

  • Formatting of GFM tables