Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
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 110 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 1 open source maintainer 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.