0.0.6 • Published 4 years ago

gtd-lib v0.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

GTD Client Lib

CircleCI Quality Gate Status Technical Debt Coverage

This JavaScript library is used to interact with my Getting Things Done server.

Using it

Add the library to your Node project

Update package.json with the following and run npm i afterwards.

"dependencies" {
    "gtd-lib": "0.0.5"
}

Import the library

import gtd from 'gtd-lib';

Use the library

const token = await gtd.login('username', 's3cr3t-p455w0rd');

const getContexts = async () => {
    return await gtd.getContexts(token);
}

const getTasks = async (contextId) => {
    return await gtd.getTasksForContext(token, contextId);
}
0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago