An open API service indexing awesome lists of open source software.

https://github.com/its-dart/dart-tools-ts

Dart TypeScript and JavaScript client and CLI
https://github.com/its-dart/dart-tools-ts

cli client dart javascript library typescript

Last synced: 9 months ago
JSON representation

Dart TypeScript and JavaScript client and CLI

Awesome Lists containing this project

README

          


Dart Tools



NPM
License


[Dart](https://dartai.com?nr=1) 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](#installation)
- [Usage](#usage)
- [Authentication of the Dart Client](#authentication-of-the-dart-client)
- [Importing](#importing)
- [Example](#example)
- [Help and Resources](#help-and-resources)
- [Contributing](#contributing)
- [License](#license)

## Installation

```sh
npm i dart-tools
```

## Usage

### Authentication of the Dart Client

Visit [your Dart profile](https://app.dartai.com/?settings=account) 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

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

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

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

### Example

```ts
// 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

- [Homepage](https://dartai.com/?nr=1)
- [Web App](https://app.dartai.com/)
- [Help Center](https://help.dartai.com/)
- [Bugs and Features](https://app.dartai.com/p/r/JFyPnhL9En61)
- [Library Source](https://github.com/its-dart/dart-tools-ts/)
- [Chat on Discord](https://discord.gg/RExv8jEkSh)
- Email us at [support@dartai.com](mailto:support@dartai.com)

## Contributing

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

## License

This project is licensed under [the MIT License](LICENSE).