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

emojizer

v1.0.0

Published

Decode your github emoji codes :wink:

Downloads

87

Readme

emojizer

Npm version Tag Version Build Status codecov License: MIT

Turn your :emoji_codes: into thier emoji character :wink:

About

emojizer is a program filter that turn github emoji codes into associated character.

Wanna try before install? just npx emojizer "Try me :wave:", and if you want to install an standard global install will do it: npm install -g emojizer

CLI

As a pipe, just place it between your program, and your eventual pager. You can use either emojizer or its alias emojize.

echo "Something with emojies :upside_down_face:" | emojizer
# 📺 Something with emojies 🙃

echo "Insert before your pager :pager:" | emojizer | less

You can also provide input as argument, either as text, either as file using the -f/--file flag

emojizer "Some string" "with or without" "emojies :slightly_smiling_face:"
# 📺 Some string
#    with or without
#    emojies 🙂
emojizer -f README.md CHANGELOG.md
# 📺 ...README then CHANGELOG with emoji code replaces

Using zsh, you can for instance define a global alias that combine emojizer and less or any other pager you use.

alias -g eless="emojizer|less"
# then just
git log --oneline --color | eless

Note that used with git log you might have to force color output, with --color flag for instance.

Detailed help

Just provide the -h or --help flag and you'll have the help displayed:

Replace your emoji codes with "real" emojies 😉

Usage:
    cat something | emojizer
    emojizer "text with :slightly_smiling_face:" ":wink:"
    emojizer -f README.md


Options:
      --version  Show version number                                   [boolean]
  -f, --file     Treat args as file to read from      [boolean] [default: false]
  -h, --help     Show help                                             [boolean]

API

Internal replacing logic is exposed and so functionality can be reuse.

Provided API is so far limited, but it expose:

  • a function to replace emoji code with corresponding emoji caracter: replaceEmojiCodes
  • a function to create a Transform stream: getEmojizerStream
  • the emojiIndex used internaly and provided by the gemoji library (emoji/name-to-emoji.json)
const {replaceEmojiCodes} = require('emojizer');

console.log(replaceEmojiCodes('some text with :symbols:'));

// for getEmojizerStream, see the source or the tests 📃

Miscaleanous

Original release was made under the name emojiless with catchphrase

Less is more with emojies :wink:

Named was changed as less was misleading, program not being a pager.