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

mojimosi

v3.0.1

Published

make an e**moji** **mos**a**i**c of from your picture

Downloads

7

Readme

mosimoji

make an emoji mosaic of from your picture

getty

  • npm i -g mojimosi

usage

  1. npx mojimosi [options] <image>

options

| option | type | description | | -------------------- | ------ | ----------------------------------------------------------------------- | | --tilesize, -t | number | the number of pixels an emoji should represent | | --background, -b | string | a colour like "white" or "#ff2a50" to use in place of transparent tiles |

examples

eat more pixels per emoji

  • npx mojimosi -t64 friend.png > friend.txt

dark mode

  • npx mojimosi -b black -t12 lol.png | pbcopy

thanks

  • to @InboxAppCo who made the MIT licensed emoji extractor that's been subtree'd in, but is not a runtime dependency
  • to @DavidBarts who made the getfonts package that's been illegally subtree'd in. they took a lot of flack for it on reddit because of IANAL but EULA amirite, and it's unlicensed so i've included their copyrighted code in this project.
  • Mihai Potra whose MIT licensed find-color script is included here with some features removed to make it work for me
  • everyone who made any of the dependencies
  • the people i love and the people who love me and most especially the intersect

story

the first thing i did was i extracted the TTF (true type) font files from the TTC collection at /System/Library/Fonts/Apple Color Emoji.ttc using the getfonts script that's subtree'd in here, but was written by @DavidBarts (who posted about it on reddit and then everyone told them they were bad). then i extracted the emoji from the ttfs using the extract-emoji script here, that was by @InboxAppCo (or by @devangovett according to the package.json).

then i created a plain text file that i've called database to annoy rich hickey, which contains one-per-line of: emoji red green blue alpha, of the average colour of the image reported by the image-average-color npm package.

then, the picture that's given on the command line is sliced up into a grid the size of the [tilesize] provided on the command line (defaults to 32), then the average colour of each slice is matched as closely as it can be (by Mihai's find-color script) to one of the emoji average colours, then the emoji are printed out in that same grid.

about the author

🎐 🗒 🕐 🕳 ➰ 🌠 🐦 🛫 🖲 🗻 🖇 🗻 👾 🔧 🔧 🛠 👓 🗻 🛩 🧟 🎩 🦅 📺 📺 🐎 🐗 🐗 🐗 🐎
🎐 🌫 🗯 🔪 👟 📫 📲 🗻 🥄 🥄 🔧 🔧 🔧 🔧 🔧 ⛏ 🕹 🏇 🐀 🕋 🦅 📺 📺 🐎 🐎 🐎 🐎 🐗 🏟
🌫 📑 📢 🏐 🎑 🏔 🖲 💤 💤 👾 👾 👾 ⛏ 🏇 🏇 🦆 💄 🕹 📿 🖥 🐄 📺 🐎 🐎 🐗 🦇 🏟 🏟 👡
📢 🕳 ⏱ 👽 🚉 🥄 💤 🔧 🐜 🐜 🐃 ⛏ ⛏ ⛏ 🏇 🕹 🕹 👙 💼 🐃 📽 📺 🐎 🐎 🐗 🐐 📸 👡 📿
👟 🎲 ➰ 🚿 🗻 💤 🔨 🍳 🎪 🤰 🙅 🚂 🎉 🎉 👞 🚘 🚀 🚘 🚘 🕹 🐃 🌘 👁 🐎 🐗 🐐 🌋 👡 🧛
🚍 📱 💱 🛫 🥄 💤 🔧 🏭 🤡 🧣 🐔 🐔 🔺 🔺 🗂 🐔 👠 ⛑ ⛑ 👞 🦆 💻 🎧 🐄 🐎 🐐 🌋 🍮 🧛
🚟 🗨 🗨 🛫 💤 🔧 🐃 🍖 🍫 🐔 🔺 🍿 🍿 🍿 🍿 🍿 🗂 🥨 ⛱ 📿 🐜 🥄 🖇 🎧 🐎 🏟 🦗 🍮 🥀
🔚 🚟 🚐 🛫 💤 🔧 🎯 🤡 🍫 🧣 🗂 🔺 🍿 🔺 🔺 🍿 🔺 🗂 🥨 🍒 🏇 👓 📎 🎧 🐎 🏟 🦗 🐖 🥀
💣 💣 🚐 🖲 📎 👾 🐓 🤡 🍫 🧣 🔺 🔺 🔺 🔺 🔺 🍿 🍻 🍻 🍿 🌅 📿 🥄 🎬 🗃 🐎 🏟 🌋 🐖 👡
🗃 🗃 🏔 🖲 👾 🐃 💳 🤡 🧣 🔺 🔺 🔺 🔺 🔺 🥫 ❗ ❗ 🎊 🛏 🐔 🧛 💻 💻 🗃 🐎 🏟 🌋 🐖 👡
🛒 🛒 🚓 🗻 🔧 🐜 🏺 📼 🎭 ⛽ 🔺 🔺 🥫 🥫 🥫 🍿 🦃 🎯 🎯 🐖 🏘 🔧 💻 🐗 🦇 🐗 🌋 🐖 🐌
🎱 🦏 🖇 👾 🔧 🐃 🧛 🐜 📿 📿 🎉 🚨 🔺 🔺 🔺 🍿 🐷 🚁 🐷 🐔 🍉 🔧 💻 🐎 🦇 🐗 📸 🐖 🐌
🌘 🐘 🗻 🔧 🔧 🐃 🚂 🚂 🏰 🎧 👞 🍒 🚨 🔺 🍻 🍫 🚢 🔳 🐜 🤡 🤡 🔧 💻 🐎 🦇 📸 📸 🏠 🍮
🎧 🎧 🦓 👣 📎 🚴 🙅 🐜 🎴 🔘 🚇 🚘 🚭 🔺 🍻 🍠 👠 🏒 🦃 🤡 🗂 🛠 🗃 🐗 🐐 📸 📸 🐖 🐖
🎧 🎧 🌘 🎩 💻 📿 🤰 🚂 🕺 🚶 🎉 🎉 🚷 🔺 🔺 🍿 🐷 🍿 🐔 🗂 🗂 🖥 🐎 🐗 🐐 📸 🏠 🐖 🐖
🎧 🖥 🌘 🎩 🚟 🎯 🤰 🤰 🤰 👠 🍒 🍒 🚷 🔻 🔺 🔺 🔺 🔻 🔺 🔺 🔺 🏭 🐎 🐎 🏰 📸 🏠 🍮 🐖
🖥 🖥 🌘 🎩 🔝 🎎 🍣 🦐 📛 🦐 📵 🚒 🚷 🔻 🔺 🔺 🔻 🔺 🔺 🥫 🔺 🕰 🐎 📺 🏰 📸 🏠 🍮 🐖
🖥 🖥 🖥 🌘 🔘 🍛 🍓 🚨 🔻 📛 🚒 🎸 👺 🔻 🔺 🔺 💝 🔻 🥫 🥫 🔺 🕰 🐎 🦇 🏰 📸 🐖 🍮 🐖
🏯 🖥 🖥 🖥 💱 🎎 🦑 🚨 🔻 ⛔ 🏓 🚒 🏓 🔻 🔺 🔺 🔺 🔻 🔺 🥫 🍿 🕰 👁 🦅 🏰 📸 🍮 🍮 🍮
🐀 🏯 🖥 🖥 🎛 🚬 🚭 🍄 🔻 🚨 📵 🚒 👠 🔺 🔺 🥫 🥫 🍿 🔺 🥫 🥫 🚁 🦇 🏰 🏰 🏠 🍮 🍮 🐌
🚇 🐀 🏯 🖥 🎑 🎥 🚶 🍄 🔻 🍄 🚭 📵 🚷 💝 📛 🔺 🔺 🧣 🍿 🥫 🍿 👁 🦇 🎩 🏰 🏠 🍮 🐫 🐌
🍳 🚴 🕹 🥅 💄 🦆 👙 🚭 🦐 🍤 👹 👄 📕 📮 🈲 💝 🔻 🔺 🥫 🥫 🕰 🦅 🦅 🌘 🏰 🐖 🐌 🍮 🥀
🐜 🕹 💄 🥅 🥅 🥅 💻 ⛑ 🚭 🦐 🚭 🏓 🏓 💝 🔻 🔺 🍌 🥫 🥫 🍠 💄 🎩 🎩 🌘 👡 🏘 🐌 🍮 🧛
💄 🥅 🥅 🔧 🥅 🥅 🎧 🖇 🚘 🍒 🚷 🦐 🚨 🔻 🔺 🔺 🥫 🥫 💳 📿 🏎 🏎 🕹 🕹 🕹 🥀 🐌 🐌 🧛
🥅 🥅 🥅 🥅 🏎 🥅 🌉 🛩 ⛏ 🚘 🚶 🚱 🚨 🔻 🔺 🔺 🥫 🐷 🖥 🖥 🏎 🏎 🏎 🥅 🥅 🏎 👞 🐌 👞
🏎 🥅 🥅 🏎 💋 🏎 🐁 🗨 🎬 🐜 🎭 🚶 🍄 🔺 🔺 🍿 🐷 🏘 🖥 🖥 🎯 🏎 ❌ 🥅 🏎 🏎 🏎 👞 📿
❌ 🏎 🥅 💋 💋 🏎 ⛪ 📬 🎑 🛒 🏭 📍 🤡 🐷 🐷 💳 🌘 🧛 🏰 🏰 🌄 🏎 🏎 🥅 🏎 🏎 🏎 ⛩ 👙
❌ 🏎 🏎 💋 💋 🏎 🍬 🛫 🛫 🌬 🦉 🍺 🥫 🥫 🕯 👞 🎳 🦇 🏰 🖇 🖲 👙 🏎 🥅 🏎 🏎 🏎 ❌ ❌
❌ 🏎 💋 💋 💋 ⛩ 📞 🎣 🗻 🛴 🏐 🦔 🀄 🥫 🛏 📿 🛳 🐨 🎳 👾 🛴 🏎 🏎 🥅 🏎 🏎 🏎 ❌ ❌