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 🙏

© 2026 – Pkg Stats / Ryan Hefner

kifo

v3.1.2

Published

NPM package to make the Kifo Clanker™ cleaner and easier to manage

Readme

kifo

NPM package to make the Kifo Clanker™ cleaner and easier to manage.

Installation

  1. npm install kifo in your terminal
  2. const kifo = require("kifo"); in your code

... and that's it!

make sure you have npm installed.

Features

Main usage of this package is to help develop Kifo Clanker™. However, there are some actually useful features that other bot developers could use (like RegExs).

embed(body, title = "Info:", perpetrator = null, client = null)

converts string (body) with optional title to embed message.

  • perpetrator - Discord.User that used the command (visible in footer)
  • client - Discord.Client that instantiated this (visible in title)

mentionTrim(mention)

Trims mentions to Ids. For instance, "<@KifoPL>" returns "KifoPL", "<@&123123123>" returns "123123123", "42069" returns "42069".

  • mention - string to trim.

emojiTrim(emojiIdentifier)

Returns Id of emoji, really handy for handling reactions, etc.

  • emojiIdentifier - The <a:name:id>, <:name:id>, a:name:id or name:id emoji identifier string of an emoji

place(number)

returns number with place abbreviation: for 1 returns 1st, 2 - 2nd, etc...

number - the place

whatAmIFunc(message, whatisthis, allowWords, callback)

Determines, what the mention or Id is.

  • message - The message sent
  • whatisthis - The argument in question (either mention or Id)
  • allowWords - True if "me" results in member and "here" in channel (case in-sensitive), false otherwise.
  • callback -
{
	entity: Discord.GuildMember || Discord.GuildChannel || Discord.GuildRole || Discord.Message || undefined,
	whatAmI: "member" || "channel" || "role" || "message" || "not found" //(that's because if the function breaks, it will return `undefined`, + it's easier to do if statements)
}

emojiRegex

Returns RegEx fitting all Unicode Emojis.

urlRegex

Returns RegEx fitting all URLs starting with http:// or https://

channelPerms

Returns array with Id, name, type, aliases of channel perms.

example:

	[
		(VIEW_CHANNEL = {
		Id: 1,
		name: "VIEW_CHANNEL",
		type: "text",
		aliases: ["view", "vch"],
	}),
	...
	]

Links