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

slackmoji

v1.1.0

Published

Tiny, zero-dependency converter from Slack :shortcode: emoji to real Unicode emoji.

Readme

slackmoji

Tiny, zero-dependency converter from Slack :shortcode: emoji to real Unicode emoji.

Slack sends messages with emoji as shortcodes (:tada:, :+1:). When you relay that text to another channel (WhatsApp, SMS, email) the shortcodes show up literally. slackmoji swaps them for the actual Unicode characters.

  • ~45 KB of data, no dependencies
  • Shortcodes sourced from iamcal/emoji-data — the same set Slack uses
  • CJS + ESM + TypeScript types

Install

npm install slackmoji

Usage

import { emojify } from 'slackmoji'
// const { emojify } = require('slackmoji')

emojify('shipped it :tada: :rocket:') // → 'shipped it 🎉 🚀'
emojify(':+1: lgtm') // → '👍 lgtm'
emojify('unknown :not_real: stays') // → 'unknown :not_real: stays'

Skin-tone modifiers combine with the preceding emoji, as in Slack:

emojify(':wave::skin-tone-5:') // → '👋🏾'

Handling unknown shortcodes

By default, shortcodes with no known emoji (e.g. custom Slack workspace emoji) are left in place. Pass onUnknown to change that:

emojify(':rocket: :made_up:') // → '🚀 :made_up:'        (default: 'keep')
emojify(':rocket: :made_up:', { onUnknown: 'strip' }) // → '🚀 '
emojify(':rocket: :made_up:', { onUnknown: 'error' }) // throws Error

Single lookups and the raw map are also exported:

import { get, emoji } from 'slackmoji'

get('rocket') // → '🚀'
get(':rocket:') // → '🚀'
emoji.fire // → '🔥'

API

| Export | Description | | ------------------ | ------------------------------------------------------------------------ | | emojify(text, options?) | Replace every :shortcode: in text. options.onUnknown = 'keep' (default), 'strip', or 'error'. | | get(shortcode) | Unicode emoji for one shortcode (with or without colons), or undefined.| | emoji | The raw { shortcode: emoji } map. |

emojify is also the default export.

Regenerating the data

npm run generate   # refreshes src/emoji.json from the upstream dataset

License

MIT