discuit-ts
v0.4.5
Published
a TypeScript library for interacting with the discuit api.
Readme
discuit-ts
discuit-ts is a TypeScript library for interacting with the discuit api.
installation
discuit-ts is available on both npm and the javascript registry.
if you want to install it via npm, you can run the following command:
npm install discuit-tsif you want to install it via the jsr, you can run the following command:
npx jsr add discuit-tsor check out the jsr documentation for more information.
usage
import { DiscuitClient } from 'discuit-ts';
const client = new DiscuitClient({
"baseURL": 'https://discuit.net',
});
await client.login('username', 'password');
// or
await client.loginWithSid('sid');
const post = await client.getPost('5ZiPe34m');
await post.upvote();the documentation can be found here.
license
discuit-ts is licensed under MIT, view LICENSE for more information.
