This package has been deprecated

Author message:

This package is deprecated. Please use 'dart-tools' instead.

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

0.3.0 • Public • Published

Dart Tools TS

NPM License

Dart is Project Management powered by AI.

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

Installation

npm i dart-tools-ts

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-ts");

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

import * as dart from "dart-tools-ts";

Example

// Get all critical tasks
import { TaskService, PaginatedConciseTaskList } from "dart-tools-ts";
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-ts";
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-ts

Weekly Downloads

9

Version

0.3.0

License

MIT

Unpacked Size

149 kB

Total Files

105

Last publish

Collaborators

  • dart-software