
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.
revolt-api
Advanced tools
This package contains typings for objects in the Revolt API and a fully typed API request builder using openapi-fetch.
If you just need access to types:
import type { User } from "revolt-api";
If you want to send requests:
import { createClient } from "./esm/index.js";
const api = createClient({
// specify bot token:
botToken: "bot-token",
// .. or a user session token:
sessionToken: "session-token",
// .. also accepts options from openapi-fetch
// such as custom middleware, baseURL, etc
});
// Fetch information about user
api.GET("/users/@me").then((res) => console.info(res.data));
// Send a message to a channel
api.POST("/channels/{target}/messages", {
params: {
path: {
target: "01F92C5ZXBQWQ8KY7J8KY917NM",
},
},
body: {
content: "Hello from Fetch/Node.js/Bun/Deno!",
},
});
FAQs
Revolt API Library
The npm package revolt-api receives a total of 181 weekly downloads. As such, revolt-api popularity was classified as not popular.
We found that revolt-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.