Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
NodeJS wrapper around Intervals API.
JavaScript
branch: master

This branch is 88 commits behind francois2metz:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
tests
.npmignore
LICENSE
README.md
config.js
description.js
intervals.js
package.json

README.md

Intervals

NodeJS wrapper of Intervals API.

Work in progress.

Install

The best way is to use npm:

npm install intervals

You can also clone the repository and install dependencies with npm:

git clone https://github.com/francois2metz/node-intervals.git
cd node-intervals
npm bundle

Dependencies

  • node-spore
  • node-optimist
  • yaml
  • futures
  • dateformat

Command line usage

intervals [--date 2011-03-14] [--hours 4] [--billable] [--description "Hello World"]

Options

  • date: date in ISO 8601 format (YYYY-MM-DD), default today
  • hours: default 8
  • billable: default non billable
  • description: default empty

API

Get Spore description

var desc = require('invervals').description;

Get client

var client = require('intervals').createClient('secret token');

Config

An API key is needed. Go to https://xx.timetask.com/account/api/ and generate one. The config file is written in ~/.config/intervals or in $XDG_CONFIG_HOME/intervals in yaml format.

Changelog

  • 0.0.4

    Add short option -b for billable hours.

    Use XDG_CONFIG_HOME environment variable for storing config file.

  • 0.0.3

    Options date is now optional. Default is today.

    Add missing base64 dependency.

  • 0.0.2

    Add description param.

  • 0.0.1

    Initial release with basic intervals bin.

License

AGPL v3.

Something went wrong with that request. Please try again.