
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
emoji-print
Advanced tools
Simple utility for logging with emojis, also with static props to return the string value to do your own strings with any emoji.
:heart_eyes: :wink: :sunglasses: :poop: :facepunch: :turtle: :cake: :pizza:
A simple utility to console log with emojis.Not all emojis are going to log correctly.
Sample TypeScript with Intellisense | Sample Logs |
---|---|
![]() | ![]() |
CodePen Demo - open the console and tap the buttons to see the emoji in the console logs.
npm install emoji-print --save
import { Emoji, EmojiSuccess } from 'emoji-print';
public someEvent() {
console.log(Emoji.Food.eggplant);
}
public anotherEvent() {
// EmojiSuccess is a utility to console.log with leading/trailing check marks.
EmojiSuccess("something great happened");
}
const EmojiPrint = require("emoji-print");
function something() {
console.log(EmojiPrint.Emoji.Smiley.hugging_face);
}
function anyEvent() {
// EmojiWarn is a utility to console.log with leading/trailing exclamations.
EmojiPrint.EmojiWarn("some error happened, abort mission");
}
function anotherEvent() {
// EmojiSuccess is a utility to console.log with leading/trailing check marks.
EmojiPrint.EmojiSuccess("something great happened");
}
This will expose a variable emojiPrint
for the library, made possible through bundling with webpack.
<button onclick="doSomething()"></button>
<script src="https://unpkg.com/emoji-print@0.2.0/dist/emoji-print.js"></script>
<script>
function doSomething() {
console.log(emojiPrint.Emoji.Food.tomato);
// or call the utility log functions for emoji-print
emojiPrint.EmojiWarn('Oh No, this is really bad.');
}
</script>
FAQs
Simple utility for logging with emojis, also with static props to return the string value to do your own strings with any emoji.
The npm package emoji-print receives a total of 0 weekly downloads. As such, emoji-print popularity was classified as not popular.
We found that emoji-print 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.