
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
cool-image-api-wrapper
Advanced tools
A quick and easy wraper to interact with the cool image api!
A quick and easy wraper to interact with the cool image api!
npm install cool-image-api-wrapper
const { API } = require("cool-image-api-wrapper");
const api = new API();
await api
.discord_message(
"My, name is Sujal Goel",
"#7289DA",
"Sujal Goel",
"https://cdn.discordapp.com/avatars/581752425858203659/a_b26f9781f3b0300177ab1f3af6190a52.png"
)
.then((data) => {
console.log(data);
})
.catch((e) => {
console.log(e);
});
const Discord = require("discord.js");
const client = new Discord.Client();
const { API } = require("cool-image-api-wrapper");
const api = new API();
client.on("ready", () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.on("message", async (message) => {
if (message.content === "test") {
await api
.discord_message(
"My, name is Sujal Goel",
"#7289DA",
"Sujal Goel",
"https://cdn.discordapp.com/avatars/581752425858203659/a_b26f9781f3b0300177ab1f3af6190a52.png"
)
.then((data) => {
console.log(data);
const attachment = new Discord.MessageAttachment(data);
message.channel.send(attachment);
})
.catch((e) => {
console.log(e);
});
}
});
client.login("DISCORD_BOT_TOKEN");
FAQs
A quick and easy wraper to interact with the cool image api!
The npm package cool-image-api-wrapper receives a total of 4 weekly downloads. As such, cool-image-api-wrapper popularity was classified as not popular.
We found that cool-image-api-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released 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
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.