npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

roaster

1.2.1 • Public • Published

Asynchronously convert a Markdown file into HTML. WOW!

You can specify either the contents of a file, or, the path to a file to read.

Usage

var roaster = require("roaster");
var fs = require("fs");
var options = {}
 
roaster("./markdown.md", options, function(err, contents) {
    fs.writeFileSync("./markdown.html", contents, "utf8");
});

Options

The second parameter, options, is optional. Any options defined here are passed to the dependent libraries for use in their own systems.

If you pass options.isFile, the first parameter is assumed to be a file path. By default, this is false, which means that the first parameter is an actual string of Markdown.

Libraries used

Keywords

none

install

npm i roaster

Downloadsweekly downloads

553

version

1.2.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
Report a vulnerability