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
- Host: GitHub
- URL: https://github.com/its-dart/dart-tools-ts
- Owner: its-dart
- License: mit
- Created: 2024-12-30T20:37:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-05T00:30:04.000Z (over 1 year ago)
- Last Synced: 2025-03-05T01:26:34.018Z (over 1 year ago)
- Topics: cli, client, dart, javascript, library, typescript
- Language: TypeScript
- Homepage: https://npmjs.com/package/dart-tools-ts
- Size: 313 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[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).