todotxt-coffee

0.5.1 • Public • Published

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')

Readme

Keywords

Package Sidebar

Install

npm i todotxt-coffee

Weekly Downloads

4

Version

0.5.1

License

MIT

Last publish

Collaborators

  • jwill