npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

claire-cord

v1.0.0

Published

a powerfull modified version of discord image generation package

Downloads

6

Readme

Configuration

The first step is to import the module in your code.

const make = require("claire-cord");

Then you have to request your image and send it as an attachement.

// Import the discord.js library.
const Discord = require("discord.js")
// Create a new discord.js client.
const bot = new Discord.Client()

const make = require("claire-cord");
> You can also destructure to avoid repeating make.

// Listen to the ready event
bot.on("ready", () => {
    console.log("ok");  
})

// Listen to the message event
bot.on("message", async (message) => {
    if (message.content === "*delete") {
        // Get the avatarUrl of the user
        let avatar = message.author.displayAvatarURL({ dynamic: false, format: 'png' });
        // Make the image
        let img = await new make.Delete().getImage(avatar)
        // Add the image as an attachement
        let attach = new Discord.MessageAttachment(img, "delete.png");;
        message.channel.send(attach)
    }
})

// Log in to the bot
bot.login("super_secret_token")

Available images

Filters

  • new make.Blur().getImage(`<Avatar>`, `<Level(Number)>`);

Blur

  • new make.Gay().getImage(`<Avatar>`);

Gay

  • new make.Greyscale().getImage(`<Avatar>`);

Greyscale

  • new make.Invert().getImage(`<Avatar>`);

Invert

  • new make.Sepia().getImage(`<Avatar>`);

Sepia

Gifs

  • new make.Blink().getImage(`<Avatar>`, `<Avatar2>`.....);

You can add as many images as you want

Blink

  • new make.Triggered().getImage(`<Avatar>`);

Triggered

Montage

  • new make.Crush().getImage(`<Avatar>`);

Crush

  • new make.Approved().getImage(`<Avatar>`);

Airpods

  • new make.Airpods().getImage(`<Avatar>`);

Airpods

  • new make.Bill().getImage(`<Avatar>`);

Bill

  • new make.Meth().getImage(`<Avatar>`);

Meth

  • new make.Communism().getImage(`<Avatar>`);

Communism

  • new make.Udf().getImage(`<Avatar>`);

Udf

  • new make.Bjp().getImage(`<Avatar>`);

Bjp

  • new make.Captcha().getImage(`<Avatar>`);

Captcha

  • new make.Continued().getImage(`<Avatar>`);

Continued

  • new make.Police().getImage(`<Avatar>`);

Police

  • new make.Linus().getImage(`<Avatar>`);

Linus

  • new make.What().getImage(`<Avatar>`);

What

  • new make.Minecraft().getImage(`<TEXT>`);

Minecraft

  • new make.Ad().getImage(`<Avatar>`);

Ad

  • new make.Affect().getImage(`<Avatar>`);

Affect

  • new make.Batslap().getImage(`<Avatar>`, `<Avatar2>`);

Batslap

  • new make.Beautiful().getImage(`<Avatar>`);

Beautiful

  • new make.Bed().getImage(`<Avatar>`, `<Avatar2>`);

Bed

  • new make.Bobross().getImage(`<Avatar>`);

Bobross

  • new make.ConfusedStonk().getImage(`<Avatar>`);

ConfusedStonk

  • new make.Delete().getImage(`<Avatar>`);

Delete

  • new make.DiscordBlack().getImage(`<Avatar>`)

DiscordBlack

  • new make.DiscordBlue().getImage(`<Avatar>`)

DiscordBlue

  • new make.DoubleStonk().getImage(`<Avatar`, `<Avatar2>`)

DoubleStonk

  • new make.Facepalm().getImage(`<Avatar>`);

Facepalm

  • new make.Hitler().getImage(`<Avatar>`);

Hitler

  • new make.Jail().getImage(`<Avatar>`);

Jail

  • new make.Karaba().getImage(`<Avatar>`);

Karaba

  • new make.Kiss().getImage(`<Avatar>`, `<Avatar2>`);

Kiss

  • new make.LisaPresentation().getImage(`<Text>`);

LisaPresentation

Limited to 300char

(Thanks to sιмση ℓεcℓεяε#5765)

  • new make.Mms().getImage(`<Avatar>`);

MMS

  • new make.NotStonk().getImage(`<Avatar>`);

NotStonk

  • new make.Podium().getImage(`<Avatar1>, <Avatar2>, <Avatar2>, <Name1>, <Name2>, <Name3>`);

Podium

  • new make.Poutine().getImage(`<Avatar>`);

Poutine

  • new make.Rip().getImage(`<Avatar>`);

RIP

  • new make.Spank().getImage(`<Avatar>`, `<Avatar2>`);

Spank

  • new make.Stonk().getImage(`<Avatar>`);

Stonk

  • new make.Tatoo().getImage(`<Avatar>`)

Tatoo

  • new make.Thomas().getImage(`<Avatar>`);

Thomas

  • new make.Trash().getImage(`<Avatar>`);

Trash

  • new make.Wanted().getImage(`<Avatar>`, `<Currency>`);

Currency ($, €, ...)

Wanted

Utils

  • new make.Circle().getImage(`<Avatar>`);

Circle

  • new make.Color().getImage(`<Color>`);

An hex color is needed, like "#FF0000"

Color