
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@grammyjs/emoji
Advanced tools
Use emoji names instead of Unicode strings. Copy-pasting emoji sucks.
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://deno.land/x/grammy_emoji/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 346 weekly downloads. As such, @grammyjs/emoji popularity was classified as not popular.
We found that @grammyjs/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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.