Giter Site home page Giter Site logo

todue-txt's Introduction

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

Argument Description
--api, -a Set the Prowl service API key
--dry-run, -n Don't actually submit to Prowl service
--version, -v Show version number
--help, -h Show help

Environment Variables

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

Variable Description
PROWL_API_KEY The Prowl service API key
TODO_FILE The 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 ๐Ÿบ

License

MIT

todue-txt's People

Contributors

sukima avatar

Watchers

 avatar James Cloos avatar

todue-txt's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.