dart-tools
TypeScript icon, indicating that this package has built-in type declarations

0.3.5 • Public • Published

Dart Tools

NPM License

Dart is Project Management powered by AI.

dart-tools is the Dart TypeScript/JavaScript Library. It enables direct integration with Dart through TypeScript or JavaScript.

Installation

npm i dart-tools

Usage

Authentication of the Dart Client

Visit your Dart profile and save the authentication token into the DART_TOKEN environment variable.

Importing

To use this package in a CommonJS (CJS) script, you can require the module with

const dart = require("dart-tools");

To use this package in an ECMAScript Module (MJS) script, you can import the module with

import * as dart from "dart-tools";

Example

// Get all critical tasks
import { TaskService, PaginatedConciseTaskList } from "dart-tools";
const filteredTasks: PaginatedConciseTaskList = await TaskService.listTasks({
  priority: "Critical",
});

// Create a new task called 'Update the landing page' with priority 'Critical' (i.e. p0)
import { TaskService, WrappedTask } from "dart-tools";
const task: WrappedTask = await TaskService.createTask({
  item: {
    title: "Update the landing page",
    priority: "Critical",
  },
});

Help and Resources

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Package Sidebar

Install

npm i dart-tools

Weekly Downloads

204

Version

0.3.5

License

MIT

Unpacked Size

165 kB

Total Files

135

Last publish

Collaborators

  • dart-software