todoist-api-colors
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Todoist API colors

Small utility to resolve color codes from Todoist API (projects, labels).

Typescript-first, colors names and IDs area strongly typed based on Todoist docs

Model

type TodoistColor = {
  id: number;
  name: string;
  hexColor: string;
};

type TodoistColorsList = TodoistColor[];

Methods

function getTodoistColorByName(name: string): TodoistColor | null;

function getTodoistColorById(id: number): TodoistColor | null;

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i todoist-api-colors

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    30.3 kB

    Total Files

    12

    Last publish

    Collaborators

    • lkostrowski