0.5.1 • Published 10 years ago

todotxt-coffee v0.5.1

Weekly downloads
30
License
MIT
Repository
github
Last release
10 years ago

Installation

	npm install todotxt-coffee

Loading Tasks

	{TodoList} = require ('todotxt-coffee/lib/TodoList')

	# Instantiate list of Tasks
	tasks = new TodoList(["(A) stop +p +c", "@c @b blah +c"])

	# Load tasks from done file
	tasks = new TodoList("~/Dropbox/todo/done.txt")

Querying Individual Tasks

	task.contexts() 	# => ['@context1', '@context2']	
	task.date()		# => 'YYYY-MM-DD'
	task.priority()		# => "(A)"
	task.projects()		# => ['+project', '+project2']
	task.properties() 	# => ['due:1234', 'note:345']
		task.raw()		# => "Full text of task"

Querying Todo Lists

	tasks.byContext('@context')
	tasks.byPriority("A")
	tasks.byProject('+project')
0.5.1

10 years ago

0.4.0

10 years ago

0.2.1

11 years ago

0.1.4

12 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago

0.0.1

12 years ago