
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@wizdm/emoji
Advanced tools
Universal emoji support for Angular. The package provides utilities and components rendering emoji as images whenever the native support were missing.
Import the EmojiSupport module in your root module calling the static init()
function to setup the source path for the image files:
import { EmojiSupportModule } from '@wizdm/emoji';
@NgModule({
imports: [
...
EmojiSupportModule.init( {
emojiPath: "https://cdn.jsdelivr.net/npm/emoji-datasource-google@5.0.1/img/google/64/"
})
]
bootstrap: [AppComponent]
})
export class AppModule { }
The package is designed to work with images following emoji-datasource naming convention.
The package can be used to both render text or to capture input with emoji:
<!-- Displays a text with emoji -->
<h1 wm-emoji-text="Send a message 😉"></h1>
...
<!-- Emoji Input within a Material Form -->
<mat-form-field>
<mat-label>Emoji Input</mat-label>
<wm-emoji-input matEmoji [(formControl)]="text" name="text"></wm-emoji-input>
<mat-hint>Material Form Field applied to universal Emoji Input</mat-hint>
</mat-form-field>
...
Use the <wm-emoji-text>
component to render texts. If native support is available, the component simply renders the text as it is. In case of native support missing, the component renders the text using <img/>
elements to render the emoji.
Use the <wm-emoji-input>
the same way you'd use a textarea
control. The component implements the ControlValueAccessor interface supporting the Angular's form API.
Use the matEmoji
directive to enable the component working within a MatFormField.
FAQs
Universal Emoji Support for Angular
The npm package @wizdm/emoji receives a total of 3 weekly downloads. As such, @wizdm/emoji popularity was classified as not popular.
We found that @wizdm/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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
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.