npm version check npm ci & build
A client library for the traQ API. Typescript type definition included.
This package is updated automatically.
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); });
x.y.z-n
x.y.z-0: It is assured that this version is compatible with traQ server versionx.y.z.
Use npm diff to check diff between versions.
npm diff --diff=@traptitech/traq@3.6.1-3 --diff=@traptitech/traq@3.6.1-4