toggle-markdown-checkbox

1.0.3 • Public • Published

Toggle Markdown Checkbox

Installation

$ npm install --global toggle-markdown-checkbox

Usage

$ check <file-path>
$ check rate <file-path>

Example

task.md

---
GET: green
POST: cyan
PUT: yellow
DELETE: red
---

- [x] GET: /api/task/1 (due: 2023-04-01)
- [x] POST: /api/task (due: 2023-05-30)
- [x] PUT: /api/task/3 (due: 2023-05-28)
- [x] DELETE: /api/task/4 (due: 2023-06-05)
- [ ] task5 (due: 2023-05-25)
- [ ] task6
$ check ./task.md
No overdue tasks.
? Select items to toggle …
✔ GET /api/task/1
✔ POST /api/task
✔ PUT /api/task/3
✔ DELETE /api/task/4
✔ task5
✔ task6
$ check rate ./task.md
No overdue tasks.

Checkbox State Report: 4/6 checkboxes checked.

Completion Rate: 66.67%

Readme

Keywords

none

Package Sidebar

Install

npm i toggle-markdown-checkbox

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

274 kB

Total Files

11

Last publish

Collaborators

  • ysnbogt