https://github.com/brian-gl/apiutils
Set of functionalities, services, extensions and code optimizations useful in day-to-day API coding.
https://github.com/brian-gl/apiutils
api csharp netcore
Last synced: about 1 year ago
JSON representation
Set of functionalities, services, extensions and code optimizations useful in day-to-day API coding.
- Host: GitHub
- URL: https://github.com/brian-gl/apiutils
- Owner: Brian-GL
- Created: 2024-04-04T15:46:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-16T01:43:02.000Z (over 2 years ago)
- Last Synced: 2024-12-31T17:45:06.490Z (over 1 year ago)
- Topics: api, csharp, netcore
- Language: C#
- Homepage:
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Api Utils
Set of functionalities, services, extensions and code optimizations useful in day-to-day API coding using C# coding.
## Extension methods
### String
* **Available**: Returns new non nullable string value from nullable one.
* **Capitalize**: Capitalizes string value.
* **HashAsync**: Hash string value using SHA512 algorithm.
* **IsMatch**: Validates if string value is match from regex pattern.
* **IsNullEmptyOrBlank**: Validates if string value is null, empty or full with white spaces.
* **IsNullOrEmpty**: Validates if string value is null or empty.
* **Like**: Defines a SQL like function to search for a specified pattern in string value.
* **ToArray**: Converts string value to char array.
* **ToByteArray**: Converts string value to byte array.
* **ToDateTime**: Converts string value to DateTime value.
* **ToDecimal**: Converts string value to Decimal value.
* **ToDouble**: Converts string value to Double value.
* **ToFloat**: Converts string value to Float value.
* **ToInt**: Converts string value to Int value.
* **ToLinkedList**: Converts string value to LinkedList value.
* **ToList**: Converts string value to List value.
* **ToLong**: Converts string value to Long value.
* **ToLowercase**: Creates a copy of string value in lower case.
* **ToShort**: Converts string value to Short value.
* **ToUppercase**: Creates a copy of string value in upper case.
* **WithoutDiacritics**: Removes diacriticts from string value.
## Utilities
### Pdf
* **Encrypt**: Encrypts pdf from MemoryStream value.
## Disclaimer
This project uses the follow NuGET packages, thanks for the use:
* [**ClosedXML**](https://github.com/ClosedXML/ClosedXML)
* [**FluentValidation**](https://docs.fluentvalidation.net/)
* [**GTranslate**](https://github.com/d4n3436/GTranslate)
* [**log4net**](https://logging.apache.org/log4net/)
* [**MongoDB.Driver**](https://www.mongodb.com/docs/drivers/csharp/current/)
* [**Newtonsoft.Json**](https://www.newtonsoft.com/json)
* [**PdfSharp**](https://docs.pdfsharp.net/)
* [**SixLabors.Fonts**](https://github.com/SixLabors/Fonts)
* [**SixLabors.ImageSharp.Drawing**](https://github.com/SixLabors/ImageSharp.Drawing)
* [**SpanJson**](https://github.com/Tornhoof/SpanJson)
* [**ZString**](https://github.com/Cysharp/ZString)
Still in development