
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
TextUtilities
Advanced tools
A fluent library for advanced text manipulation, including removing spaces, normalizing Persian text, creating URL slugs, and more.
TextUtilities is a fluent, lightweight, and powerful .NET library designed for advanced text manipulation. Whether you're normalizing Persian text, creating URL-friendly slugs, formatting text with HTML or Markdown, or performing complex string operations, TextUtilities offers an intuitive Fluent API to make your code clean and efficient.
ي to ی or ك to ک).To use TextUtilities in your project, install it via NuGet:
dotnet add package TextUtilities --version 1.0.1
Or, if you prefer using the Package Manager Console:
Install-Package TextUtilities -Version 1.0.1
Get started with TextUtilities in just a few lines of code:
using TextUtilities;
string result = new TextUtility("Hello World!")
.RemoveSpaces()
.ToBold()
.AddPrefix("Output: ")
.Build();
Console.WriteLine(result);
// Output: Output: <b>HelloWorld!</b>
Below are some practical examples to demonstrate the power of TextUtilities:
using TextUtilities;
string result = new TextUtility("hello world")
.NormalizePersian()
.ToUpperCase()
.Build();
Console.WriteLine(result);
using TextUtilities;
string result = new TextUtility("Hello World! @#$")
.ToSlug()
.Build();
Console.WriteLine(result);
// Output: hello-world
using TextUtilities;
string result = new TextUtility("This is a TEST string!")
.ToLowerCase()
.RemoveSpaces()
.ToMarkdownBold()
.ToSlug()
.AddPrefix("Slug: ")
.Build();
Console.WriteLine(result);
// Output: Slug: **thisisateststring**
using TextUtilities;
string text = "Hello Beautiful World";
var utility = new TextUtility(text);
string reversed = utility.ReverseWords().Build();
int wordCount = utility.WordCount();
Console.WriteLine($"Reversed: {reversed}");
Console.WriteLine($"Word Count: {wordCount}");
// Output:
// Reversed: World Beautiful Hello
// Word Count: 3
using TextUtilities;
var utility = new TextUtility("Hello World");
string modified = utility.ToSlug().Build(); // hello-world
string reset = utility.Reset().ToBold().Build(); // <b>Hello World</b>
Console.WriteLine($"Modified: {modified}");
Console.WriteLine($"Reset: {reset}");
// Output:
// Modified: hello-world
// Reset: <b>Hello World</b>
using TextUtilities;
string result = new TextUtility("Hello123World456")
.ReplaceRegex("[0-9]+", "X")
.Build();
Console.WriteLine(result);
// Output: HelloXWorldX
TextUtilities is thoroughly tested using xUnit to ensure reliability. To run the tests locally:
git clone https://github.com/hheydarian/TextUtilities.git
cd TextUtilities
dotnet test
We welcome contributions to make TextUtilities even better! To contribute:
Fork the repository.
Create a new branch:
git checkout -b feature/YourFeature
git commit -m 'Add some feature'
git push origin feature/YourFeature
Please ensure your code follows the existing style, includes unit tests, and passes all checks.
This project is licensed under the MIT License (LICENSE). See the LICENSE file for details.
Author: Hamed Heydarian
GitHub: hheydarian
NuGet: TextUtilities
Issues: Report bugs or suggest features on GitHub Issues
For questions or feedback, feel free to open an issue or reach out!
Thank you for using TextUtilities!🚀
FAQs
A fluent library for advanced text manipulation, including removing spaces, normalizing Persian text, creating URL slugs, and more.
We found that textutilities demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.