# roaster

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

Latest version **1.2.1** (published 2016-08-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install roaster
pnpm add roaster
yarn add roaster
bun add roaster
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2016-08-10 |
| First published | 2013-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+12 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 31 |
| Author | Garen J. Torikian |
| Maintainers | atom, gjtorikian, kevinsawicki |

## Links

- npm: https://www.npmjs.com/package/roaster
- Repository: https://github.com/gjtorikian/roaster
- Issues: http://github.com/gjtorikian/roaster/issues
- npm.io page: https://npm.io/package/roaster

## Dependencies (6)

- [marked](https://npm.io/package/marked.md) ~0.3.3
- [cheerio](https://npm.io/package/cheerio.md) 0.15.0
- [js-yaml](https://npm.io/package/js-yaml.md) 3.6.1
- [task-lists](https://npm.io/package/task-lists.md) 0.2.0
- [underscore](https://npm.io/package/underscore.md) 1.6.0
- [emoji-images](https://npm.io/package/emoji-images.md) 0.0.2

## Recent versions

- 1.2.1 (latest) — 2016-08-10
- 1.2.0 — 2015-07-01
- 1.1.3 — 2015-04-21
- 1.1.2 — 2014-07-11
- 1.1.1 — 2014-07-11
- 1.1.0 — 2014-07-11
- 1.0.8 — 2014-07-07
- 1.0.7 — 2014-05-20
- 1.0.6 — 2014-05-01
- 1.0.5 — 2014-04-30
- 1.0.4 — 2014-04-16
- 1.0.3 — 2014-02-27
- 1.0.2 — 2014-02-27
- 1.0.1 — 2014-02-21
- 1.0.0 — 2014-02-21
- … 10 more at https://npm.io/package/roaster/versions

## README

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

```javascript
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](https://github.com/chjj/marked) for Markdown conversion
* [emoji-images](https://github.com/henrikjoreteg/emoji-images.js) for emoji conversion
* [task-lists](https://github.com/gjtorikian/task-lists-js) for GFM style task lists conversion

---
_Source: https://npm.io/package/roaster · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
