Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 2.33 KB

File metadata and controls

54 lines (44 loc) · 2.33 KB
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 18 column 57
---
_layout: landing
landingData:
  heroSection:
    name: StringKit
    tagline: Full string util for .NET
    image: images/icon.svg
    features:
      - name: Zero Dependencies
        icon: fa-feather
        description: No external packages at runtime. .NET 9, NativeAOT-friendly, runs fully offline.
        url: docs/introduction.md
      - name: Coverage
        icon: fa-circle-check
        description: 191 tests covering case conversion, normalization, privacy, search, validation, and encoding.
        url: coverage-report.md
      - name: Open Source
        icon: fa-code-branch
        description: MIT-licensed. Contributions welcome: check the contributing guide to get started.
        url: docs/contributing.md
---

StringKit

A lightweight .NET library of extension methods for common string transformations and formatting.

NuGet NuGet Downloads CI License: MIT GitHub Stars

1. Quick Start

Install via NuGet:

dotnet add package StringKit
using StringKit;

2. Features

  • Case conversion & truncation: ToSlug, ToCamelCase, ToPascalCase, ToSnakeCase, ToTitleCase, ToSentenceCase, Truncate, Repeat, Reverse
  • Normalization: NormalizeSpaces, RemoveDiacritics, RemoveSpecialChars, NormalizeNewLines, StripHtml, CollapseWhitespace, JoinLines
  • Privacy / PII masking: Redact, MaskEmail, MaskPhone
  • Search & comparison: ContainsAny, ContainsAll, StartsWithAny, EndsWithAny, EqualsIgnoreCase
  • Validation: IsEmail, IsUrl, IsNumeric, IsAlpha, IsAlphanumeric, IsNullOrWhiteSpace, HasMinLength, HasMaxLength
  • Encoding / decoding: ToBase64, FromBase64, UrlEncode, UrlDecode, HtmlEncode, HtmlDecode