Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gtd-lib

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gtd-lib

Client library for working with my GTD API

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 08 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc