gtd-lib

0.0.6 • Public • Published

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);
}

Readme

Keywords

none

Package Sidebar

Install

npm i gtd-lib

Weekly Downloads

1

Version

0.0.6

License

MIT

Unpacked Size

9.4 kB

Total Files

6

Last publish

Collaborators

  • mthmulders