
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
Get the emoji(s) that best represent the given text/concept.
Uses OpenAI's GPT-3.5 gpt-3.5-turbo API.
Install it:
npm i gpt-emoji
Set your OpenAI key:
export OPENAI_API_KEY=sk-...
getEmojis()| Parameter | Type | Description |
|---|---|---|
text | string or string[] | The string(s) to get emojis for. |
options | object | Optional options for the function. |
options.count | number | The number of emojis to represent the text with. Default: The AI chooses how many are needed. |
Returns a string array of emojis that best represent the given text, or a nested array of strings if multiple texts are given.
Note that this function is non-deterministic and could return different emojis each time.
A single string:
import { getEmojis } from 'gpt-emoji';
getEmojis('japanese cherry blossom festival');
// ['🌸', '🇯🇵, '🎎']
Multiple strings and a custom count:
import { getEmojis } from 'gpt-emoji';
getEmojis(['atomic clock', 'machine learning'], { count: 2 });
// [ [ '⏰', '☢️' ], [ '🤖', '🧠' ] ]
FAQs
Get the emoji(s) that best represent the given text/concept.
The npm package gpt-emoji receives a total of 8 weekly downloads. As such, gpt-emoji popularity was classified as not popular.
We found that gpt-emoji demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.