Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gjtorikian/task-lists-js

An implementation of the basic task list logic (in CoffeeScript)
https://github.com/gjtorikian/task-lists-js

Last synced: about 1 month ago
JSON representation

An implementation of the basic task list logic (in CoffeeScript)

Awesome Lists containing this project

README

        

# Tasks Lists (JS)

Turns a GFM style task list into a series of checkboxes.

## Installation

```
npm install task-lists
```

## Usage

```coffeescript
var roaster = require("roaster");
var taskLists = require("../src/index");
var fs = require("fs");

var options = {};
options.isFile = true;

roaster("./markdown.md", options, function(err, contents) {
contents = taskLists(contents, { disabled: false });
fs.writeFileSync("./markdown.html", contents, "utf8");
});
```