1.0.0 • Published 10 years ago

todue-txt v1.0.0

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

ToDue Build Status

Scan your todo.txt finding any due tasks and sends those tasks to Prowl.

This is meant to be used from a cron job but could easily be used in other ways. It was written in node as an exercise in using text streams. It is very likely this could have been easily done in a shell script.

Project Setup

Node.js Version 0.10+

This tool requires a valid Prowl API key.

$ npm install -g todue-txt
$ todue --help

The todue command takes a file name as an argument or can read from STDIN (aka "-" as the file name).

Arguments

ArgumentDescription
--api, -aSet the Prowl service API key
--dry-run, -nDon't actually submit to Prowl service
--version, -vShow version number
--help, -hShow help

Environment Variables

The following environment variables can be set in lieu of the above command line arguments:

VariableDescription
PROWL_API_KEYThe Prowl service API key
TODO_FILEThe todo.txt file to parse

Examples

$ todue -a 12345 -                # Read STDIN for todo list.
$ todue -a 12345 ~/todo/todo.txt  # Use ~/todo/todo.txt for list of todos.

Testing

Tests are written for Mocha:

$ mocha

Contributing changes

  • Fork
  • Code
  • Check that tests pass (you did code specs right?)
  • Send a Pull Requests
  • Have a :beer:

License

MIT