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

burger-toolkit

v1.0.2

Published

A toolkit written for Node.js.

Readme

Install With


npm install burger-toolkit --save

Read This


burger-toolkit on NPM

burger-toolkit is a useful tool that I use when it comes to certain things, for example:

color.js, the library burger-toolkit uses for coloring text can do this:

console.log('someString'.green) and will output "someString" in green.

or console.log(colors.green('someString'))

BUT, if you want to pass the color, background and or styling from the end-user to the program, you will need to do something like this:

if(color === "black") console.log("someString".black) for every possible color that you might want to support, but burger-toolkit allows you to do:

console.log(burger.colorString("someString", "black")) or

console.log(burger.colorString("someString", burger.c(0))) depending on your use,

this allows you to pass any color, background, or styling information as a string or integer

burger.c(int) will return a color depending on the integer you give it. burger.c(0) returns "black"

Also, there are similar functions for styling and background:

console.log(burger.colorStringBG("someString", "black")

console.log(burger.styleString("someString", "bold")

(string only for styling)

Other Features


burger.log("log.txt", "append this to end of log.txt")

burger.logArray("log.txt", array)

burger.logArray("log.txt", array, "red", "black")

The last one will log each element in array with a certain color and background.

Useful Information


burger.strip("someString") will strip any string of it's ANSI color information using strip-ansi

Numbers and strings:

"black" or 0

"red" or 1

"green" or 2

"yellow" or 3

"blue" or 4

"magenta" or 5

"cyan" or 6

"white" or 7

"gray" or 8

"grey" or 9

you can use burger.c(int) for burger.colorString(string, color)

or burger.colorStringBG(string, bgColor)