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

knights-canvas

v1.3.7-a

Published

hello world(>////<)

Downloads

113,707

Readme

Installation

$ npm install knights-canvas

const knights = require("knights-canvas");

NPM

how to use

const knights = require("knights-canvas");
const fs = require('fs');

const image = await new knights.Welcome()
    .setUsername("UNDEFINED")
    .setGuildName("WIBU NOLEP")
    .setGuildIcon("https://i.ibb.co/G5mJZxs/rin.jpg")
    .setMemberCount("120")
    .setAvatar("https://i.ibb.co/1s8T3sY/48f7ce63c7aa.jpg")
    .setBackground("https://i.ibb.co/4YBNyvP/images-76.jpg")
    .toAttachment();
  
  data = image.toBuffer();
  await fs.writeFileSync(__path +'/tmp/swelkom.png', data)
 

result

const knights = require("knights-canvas");
const fs = require('fs');

var image = await new knights.Welcome2()
    .setAvatar("you url pic")
    .setUsername("your name") 
    .setBg("background") 
    .setGroupname("guild name/groupname") 
    .setMember("member count") 
    .toAttachment();
    
  data = image.toBuffer();
  await fs.writeFileSync(__path +'/tmp/sewelkom2.png', data)
  

const knights = require("knights-canvas");
const fs = require('fs');

const image = await new knights.Rank()
    .setAvatar("https://i.ibb.co/1s8T3sY/48f7ce63c7aa.jpg") 
    .setUsername("Lingz") 
    .setBg("https://i.ibb.co/4YBNyvP/images-76.jpg")
    .setNeedxp("1000") 
    .setCurrxp("100") 
    .setLevel("6") 
    .setRank("https://i.ibb.co/Wn9cvnv/FABLED.png") 
    .toAttachment();
  
  data = image.toBuffer();
  await fs.writeFileSync(__path +'/tmp/srank.png', data)
 

result

const knights = require("knights-canvas");
const fs = require('fs');

const image = await new knights.Up()
    .setAvatar("https://i.ibb.co/1s8T3sY/48f7ce63c7aa.jpg") 
    .toAttachment();
  
  data = image.toBuffer();
  await fs.writeFileSync(__path +'/tmp/slevelup.png', data)
 

result

update

Horny

const knights = require("knights-canvas");
const fs = require('fs');
const image = await new knights.Horny()
    .setAvatar("https://i.ibb.co/1s8T3sY/48f7ce63c7aa.jpg")
    .toBuild();
  data = image.toBuffer();
  await fs.writeFileSync(__path +'/tmp/horny', data)

result

Jojo

const knights = require("knights-canvas");
const fs = require('fs');
const image = await new knights.Jo()
    .setImage("https://i.ibb.co/xG8L4mz/images.jpg")
    .toBuild();
  data = image.toBuffer();
  await fs.writeFileSync(__path +'/tmp/jojo.png', data)

result

Patrick

const knights = require("knights-canvas");
const fs = require('fs');
const image = await new knights.Patrick()
    .setAvatar("https://i.ibb.co/xG8L4mz/images.jpg")
    .toAttachment();
  data = image.toBuffer();
  await fs.writeFileSync(__path +'/tmp/pat.png', data)

result

Bonk

const knights = require("knights-canvas");
const fs = require('fs');
const image = await new knights.Bonk()
    .setAvatar1("https://i.ibb.co/G5mJZxs/rin.jpg")
    .setAvatar2("https://i.ibb.co/BZgRzh0/IMG-20210621-WA0000.jpg")
    .toBuild();
  data = image.toBuffer();
  await fs.writeFileSync(__path +'/tmp/bonk.png', data)

result

Spongebob Burn

const knights = require("knights-canvas");
const fs = require('fs');
const image = await new knights.Burn()
    .setAvatar("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQwXmOgfrrGKdaGbnisffjJaUM2eU2izUBf3w&usqp=CAU")
    .toAttachment();
  data = image.toBuffer();
  await fs.writeFileSync(__path +'/tmp/burn.png', data)

result

✉ req ? chat me on

Telegram

Credits

thanks my team for the help
knights-canvas

(^ω^)