
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
This is the official Node.js Wrapper for the KSoft.Si API.
All API calls are async. You have to put them into an async function, and await them. Else, they will return a Promise.
Example:
const { KSoftClient } = require('ksoft.js');
const ksoft = new KSoftClient('your-very-nice-token');
async function test () {
const aww = await ksoft.images.aww();
message.send(aww.url);
}
test();
For ksoft.bans.add
, I have included a ban builder, which makes it considerably easier to send a ban request to KSoft.
API:
ban.setUser(id: Snowflake, name: String, discriminator: String);
ban.setReason(reason: String, proof: URL);
ban.setModerator(id: Snowflake);
Example:
const { Ban, KSoftClient } = require('ksoft.js');
const ksoft = new KSoftClient('your-very-nice-token');
const ban = new Ban()
.setUser('123456789123456789', 'Wumpus', '0001')
.setReason('Bad Raider', 'https://i.imgur.com/ban_em_already')
.setModerator('102102717165506560');
ksoft.bans.add(ban);
ksoft.bans.add(ban: Ban);
Response:
Promise<{ success: true } | {success: false, message: '[error that occured]'}>
ksoft.bans.info(id: Snowflake);
Response:
Promise<Ban>
FAQs
Official Node.js Wrapper for the KSoft.Si API.
The npm package ksoft.js receives a total of 4 weekly downloads. As such, ksoft.js popularity was classified as not popular.
We found that ksoft.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.