JGP.CharacterCount.Core 1.0.3

dotnet add package JGP.CharacterCount.Core --version 1.0.3
NuGet\Install-Package JGP.CharacterCount.Core -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JGP.CharacterCount.Core" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JGP.CharacterCount.Core --version 1.0.3
#r "nuget: JGP.CharacterCount.Core, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install JGP.CharacterCount.Core as a Cake Addin
#addin nuget:?package=JGP.CharacterCount.Core&version=1.0.3

// Install JGP.CharacterCount.Core as a Cake Tool
#tool nuget:?package=JGP.CharacterCount.Core&version=1.0.3

JGP.CharacterCount

It... Counts Characters?

Able to count: [] Spaces [] Characters [] Unique Characters [] Words [] Unique Words [] Sentences [] Paragraphs [] Word Densities with Counts and Percentages

Example usage:

    public SomeClass PerformSomeAction(SomeClass someClass)
    {
    	ICharacterCountService service = new CharacterCountService();
    	var model = service.Count(someClass.Text);
    	// Do stuff.
    }

I built this to use for a page on my website. It works well so I made it public.. Crack on.

Easy to use in MVC or similar.

The algorithm used to calculate density percentages is not NASA-Engineer grade. But it's good enough for me. Feel free to contribute to the project, or let me know if you've used this and it's been useful.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on JGP.CharacterCount.Core:

Package Downloads
JGP.CharacterCount.Services

Adds useful character counting services

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 203 10/29/2022
1.0.2 206 10/29/2022