Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@grammyjs/emoji
Advanced tools
Adds emoji parsing for grammY. Check out the official documentation to learn more about this plugin.
Using NPM:
npm install @grammyjs/emoji
Using Yarn:
yarn add @grammyjs/emoji
Using Deno:
import {...} from "https://github.com/grammyjs/emoji/src/mod.ts";
import { Bot, Context } from "grammy";
import { EmojiFlavor, emojiParser } from "@grammyjs/emoji";
type MyContext = EmojiFlavor<Context>;
const bot = new Bot<MyContext>(""); // <-- put your bot token between the ""
bot.use(emojiParser());
bot.command("ping", async (ctx) => {
// Don't know emoji names? No problem!
// Press Ctrl + Space on supported editors to
// see IntelliSense auto-completion magic.
await ctx.reply(ctx.emoji`Pong! ${"ping_pong"}`);
// > Pong! 🏓
});
bot.command("start", async (ctx) => {
await ctx.replyWithEmoji`Welcome to my bot! ${"grinning_face_with_big_eyes"}`;
// > Welcome to my bot! 😀
});
bot.start();
Contributions are more than welcome! Just make sure if there is already a similar PR, so you can contribute from there.
FAQs
Use emoji names instead of Unicode strings. Copy-pasting emoji sucks.
The npm package @grammyjs/emoji receives a total of 253 weekly downloads. As such, @grammyjs/emoji popularity was classified as not popular.
We found that @grammyjs/emoji demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.