Socket
Book a DemoInstallSign in
Socket

@baethon/munci

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@baethon/munci

Convert string to emoji face

1.0.0
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

🖤💛 Mùnči Build status

example usage

Installation

npm i @baethon/munci

About

Mùnči is a simple one-way hash function which transforms given string to an emoji face. Package uses emoji set including people with all genders and skin tones.

Due to limited number of emojis it's highly possible that resulting emoji will be generated also for different string values.

Possible use cases:

  • logging stream (like... Slack!) when one needs to identify quickly a user
  • simplified avatar system

Usage

Package exports one function, which accepts a string value. There's no way to filter the set of emojis by gender or skin tone so it's possible that it will return weird results :)

const munci = require('@baethon/munci')

const userAvatar = munci('Jon Snow')

Testing

yarn test

Building

Package uses emojis set provided by emojilib. To reload/refresh it use:

yarn build

Credits

FAQs

Package last updated on 16 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.