Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/traPtitech/node-traq

Node.js client library for the traQ API.
https://github.com/traPtitech/node-traq

hacktoberfest traq

Last synced: 3 months ago
JSON representation

Node.js client library for the traQ API.

Awesome Lists containing this project

README

        

# node-traQ

[![npm version](https://badge.fury.io/js/%40traptitech%2Ftraq.svg)](https://www.npmjs.com/package/@traptitech/traq)
![check npm ci & build](https://github.com/traPtitech/node-traq/workflows/check%20npm%20ci%20%26%20build/badge.svg)

A client library for the traQ API.
Typescript type definition included.

This package is updated automatically.

## How to use

Node.js v20 or later is required.

```shell
npm i @traptitech/traq
```

```js
import { Apis, Configuration } from "@traptitech/traq";
// const { Apis, Configuration } = require("@traptitech/traq");

const api = new Apis(new Configuration({
accessToken: "/* your token */"
}));

api.getChannels().then(res => {
console.log(res);
});
```

## Versioning

`x.y.z-n`

- `x.y.z-0`: It is assured that this version is compatible with traQ server version `x.y.z`.

## Diff

Use [`npm diff`](https://docs.npmjs.com/cli/v7/commands/npm-diff) to check diff between versions.

```shell
npm diff --diff=@traptitech/[email protected] --diff=@traptitech/[email protected]
```