
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
random-emoji
Advanced tools
Get random emoji!
npm install random-emoji
var randomEmoji = require('random-emoji');
// Array of five random emoji
randomEmoji.random({count: 5});
// Array of lines for an emoji haiku
randomEmoji.haiku({
host: '/images'
});
// Each array is made up of emoji objects
[{
"character": "🐳",
"name": "whale",
"image": "<img class=\"emoji\" title=\"whale\" alt=\"whale\" src=\"/images/whale.png\" height=\"64\" />",
"imageSrc": "/images/whale.png"
},
{
"character": "🍮",
"name": "custard",
"image": "<img class=\"emoji\" title=\"custard\" alt=\"custard\" src=\"/images/custard.png\" height=\"64\" />",
"imageSrc": "/images/custard.png"
}]
{
// The number of emojis to return (only for `random`)
count: 3,
// The height of each image in the returned image tag (defaults to '64')
height: 64,
// The host will be prepened to the src in the image tag (defaults to '/')
host: '/'
}
random()
: Random emojis!haiku()
: Returns a three item array made up enough emojis in each so the names contain 5, 7, 5 syllablesCredit to nlf for all the haiku code.
MIT
FAQs
Flavors of random emoji: fortunes, haikus, etc.
The npm package random-emoji receives a total of 129 weekly downloads. As such, random-emoji popularity was classified as not popular.
We found that random-emoji demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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 MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.