Socket
Book a DemoInstallSign in
Socket

roaster

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roaster

Turns a raw and crunchy Markdown file into nice and smooth output

latest
Source
npmnpm
Version
1.2.1
Version published
Maintainers
3
Created
Source

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

  • marked for Markdown conversion
  • emoji-images for emoji conversion
  • task-lists for GFM style task lists conversion

FAQs

Package last updated on 10 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts