todoo

0.1.0 • Public • Published

todoo

Mark your todo list

Usage

As lib module:

var TodoStore = require('todoo')
var store = new TodoStore('./todos.json')
store.add({
  title: 'Go to bed',
  catagory: 'Health'
})
var item = store.fetch({
  catagory: 'Health'
})
store.update({
  catagory: 'Health'
}, {
  checked: true
})
  • fetch(sel)
  • add(data)
  • remove(sel)
  • update(sel, diff)

As Cli tool:

$ todoo fetch
>>> [ { id: 1,
    title: 'Hello',
    checked: false,
    created_at: '2014-11-30 00:40:44' },
  { id: 2,
    title: 'Hello1',
    checked: false,
    created_at: '2014-11-30 00:40:53' } ]
$ todoo remove 2
$ todoo checked 1
$ todoo add "Go to bed"
  • fetch
  • add [title]
  • remove [id]
  • check [id]
  • uncheck [id]

Readme

Keywords

none

Package Sidebar

Install

npm i todoo

Weekly Downloads

1

Version

0.1.0

License

none

Unpacked Size

3.55 kB

Total Files

5

Last publish

Collaborators

  • fritx