![]() |
VOOZH | about |
dotnet add package EmojiToolkit --version 16.0.0
NuGet\Install-Package EmojiToolkit -Version 16.0.0
<PackageReference Include="EmojiToolkit" Version="16.0.0" />
<PackageVersion Include="EmojiToolkit" Version="16.0.0" />Directory.Packages.props
<PackageReference Include="EmojiToolkit" />Project file
paket add EmojiToolkit --version 16.0.0
#r "nuget: EmojiToolkit, 16.0.0"
#:package EmojiToolkit@16.0.0
#addin nuget:?package=EmojiToolkit&version=16.0.0Install as a Cake Addin
#tool nuget:?package=EmojiToolkit&version=16.0.0Install as a Cake Tool
A C# toolkit for working with emoji.
The static Emoji class has methods for converting emoji into various formats, including conversion to html.
// get an emoji by shortcode
Emoji.Get(":smiley:").Raw; // ð
// get an emoji by ascii equivalent
Emoji.Get(":-D").Raw; // ð
// get an emoji by raw unicode string
Emoji.Get("ð").Name; // grinning face with big eyes
// get the ascii equivalent of an emoji
Emoji.Ascii("ð"); // ;)
// get <img> tag for the specified emoji
Emoji.Image(":wink:"); // <img class="emoji" alt="ð" title=":wink:" src="/emoji/1f609.png" />
// get the raw unicode equivalent for an emoji shortcode
Emoji.Raw(":smiley:"); // ð
// get the shortcode for a raw unicode string
Emoji.Shortcode("ð"); // :smiley:
// get <span> tag for the specified emoji
Emoji.Span(":wink:"); // <span class="emoji" title=":wink:">ð</span>
// replace emoji shortcodes and raw unicode strings with their ascii equivalents
Emoji.Asciify("ð :wink:"); // ;) ;)
// replace emoji shortcodes with raw unicode strings.
Emoji.Emojify("it's raining :cat:s and :dog:s!"); // it's raining ðąs and ðķs!
// replace raw unicode strings with emoji shortcodes
Emoji.Demojify("it's raining ðąs and ðķs!"); // it's raining :cat:s and :dog:s!
// replace emoji shortcodes and raw unicode strings with <img> tags
Emoji.Imagify("it's raining :cat:s and ðķs!"); // it's raining <img class="emoji" alt="ðą" title=":cat:" src="/emoji/1f431.png" />s and <img class="emoji" alt="ðķ" title=":dog:" src="/emoji/1f436.png" />s!
// replace emoji shortcodes and raw unicode strings with <span> tags
Emoji.Spanify("it's raining :cat:s and ðķs!"); // it's raining <span class="emoji" title=":cat:">ðą</span>s and <span class="emoji" title=":dog:">ðķ</span>s!
// find emoji by name, category, shortcodes and tags
Emoji.Find("smile").First().Raw; // ð
// determine whether a string is comprised solely of emoji
Emoji.IsEmoji("ðąðķ"); // true
Emoji.IsEmoji("it's raining ðąs and ðķs!"); // false
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 3 NuGet packages that depend on EmojiToolkit:
| Package | Downloads |
|---|---|
|
Weavy.Core
A class library containing core business logic, data access and utility methods required by Weavy. |
|
|
Weavy.Admin
Razor class library containing the management interface for Weavy. |
|
|
Weavy.Api
Package Description |
This package is not used by any popular GitHub repositories.