Skip to content

Latest commit

 

History

History
54 lines (42 loc) · 812 Bytes

README.md

File metadata and controls

54 lines (42 loc) · 812 Bytes

tasklist.js

Converts tasklist in Markdown.

Install

# As an npm package
npm install increments/tasklist.js

# As a bower package
bower install increments/tasklist.js

# As a source code for browser
<script src="http://increments.github.io/tasklist.js/dist/tasklist.min.js"></script>

API

See /docs/tasklist.md.

tasklist.convert(
  '- [ ] foo\n' +
  '- [ ] bar\n' +
  '- [ ] baz',
  2,
  true
)
// results in:
// - [ ] foo
// - [x] bar
// - [ ] baz

Development

npm is pre-required for development.

# Install dependent modules for development
make prepare

# Run tests
make test

# Run lint checker
make lint

# Update docs
make doc

# Update distribution
make build

# Run all above tasks
make