Skip to content

Node.js client library for the traQ API.

License

Notifications You must be signed in to change notification settings

traPtitech/node-traq

Repository files navigation

node-traQ

npm version check npm ci & build

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.

npm i @traptitech/traq
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 to check diff between versions.

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