Mojee 1.2.0
See the version list below for details.
dotnet add package Mojee --version 1.2.0
NuGet\Install-Package Mojee -Version 1.2.0
<PackageReference Include="Mojee" Version="1.2.0" />
paket add Mojee --version 1.2.0
#r "nuget: Mojee, 1.2.0"
// Install Mojee as a Cake Addin #addin nuget:?package=Mojee&version=1.2.0 // Install Mojee as a Cake Tool #tool nuget:?package=Mojee&version=1.2.0
Welcome to Mojee ðĪŠ
What is Mojee?
Mojee is a lightning ⥠fast Emoji library for .NET & TypeScript (.ts is coming soon).
Mojee's big party trick is the ultra-high-performance parse and replacement of emoji :short-codes:
within a block of text. Pass a string of text to Mojee, and Mojee will convert valid emoji :short-codes:
into emoji characters. Here's a basic Mojee Replace
sample:
// Replace all shortcodes with an emoji
var result = Mojee.Replace("Hello, world :smile:");
Console.WriteLine(result);
The console output from the above sample would be:
Hello, world ð
Mojee is also amazing at Emoji search. Search for any term and Mojee will hand back a collection of emoji results. The following sample demonstrates a basic emoji search.
// Search for emojis
Mojee.Search("smile").ToList()
.ForEach(emoji => Console.Write(emoji));
The console output from the above sample would be:
ð ðļ ð ðš ð
Getting Started
Within seconds, Mojee can be added to any .NET Core project using the NuGet package, or search for Mojee
from within the NuGet Package Manager in Visual Studio.
dotnet CLI
dotnet add package Mojee
NuGet CLI
Install-Package Mojee
The following sequence of commands could be used to create a new .NET Console project using the dotnet
CLI, add Mojee to the project, and finally open the new project in Visual Studio Code.
mkdir MojeeDemo # Make a new folder
cd MojeeDemo # Move into the new folder
dotnet new console # Create a new .NET Console app
dotnet add package Mojee # Add Mojee to your new project
code . # Open in Visual Studio Code
The MojeeIO
API is now available within your app. The following sample demonstrates a basic Console app scenario with Mojee.
using System;
using MojeeIO;
namespace MojeeDemo
{
class Program
{
static void Main(string[] args)
{
// Replace all shortcodes with an emoji
var result = Mojee.Replace("Hello, world :+1:");
Console.WriteLine(result);
Console.ReadKey();
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Microsoft.Extensions.Configuration.Json (>= 3.1.10)
- System.Memory (>= 4.5.4)
-
net5.0
- Microsoft.Extensions.Configuration.Json (>= 5.0.0)
- System.Memory (>= 4.5.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.