{"id":22220254,"url":"https://github.com/codeflighthub/core.packets","last_synced_at":"2025-06-13T08:07:27.247Z","repository":{"id":229849975,"uuid":"777785014","full_name":"CodeFlightHub/Core.Packets","owner":"CodeFlightHub","description":"Provides extension libraries for .Net projects.","archived":false,"fork":false,"pushed_at":"2024-04-07T16:04:00.000Z","size":353,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-04T04:06:02.279Z","etag":null,"topics":["dotnet-core","extension","library"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeFlightHub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-26T13:55:32.000Z","updated_at":"2024-04-18T23:38:52.000Z","dependencies_parsed_at":"2024-04-06T21:29:52.805Z","dependency_job_id":null,"html_url":"https://github.com/CodeFlightHub/Core.Packets","commit_stats":null,"previous_names":["codeflighthub/core.packets"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodeFlightHub/Core.Packets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeFlightHub%2FCore.Packets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeFlightHub%2FCore.Packets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeFlightHub%2FCore.Packets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeFlightHub%2FCore.Packets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeFlightHub","download_url":"https://codeload.github.com/CodeFlightHub/Core.Packets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeFlightHub%2FCore.Packets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259606976,"owners_count":22883559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotnet-core","extension","library"],"created_at":"2024-12-02T23:07:38.593Z","updated_at":"2025-06-13T08:07:27.226Z","avatar_url":"https://github.com/CodeFlightHub.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\n \u003cimg src=\"https://github.com/CodeFlightHub/Core.Packets/assets/56757412/9eaea99c-d297-4a25-b9d9-3ddab403b00e\" height=\"256\"\u003e\n  \u003ch3 align=\"center\"\u003eCore Packets\n\u003c/h3\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/CodeFlightHub/Core.Packets/commits/dev\"\u003e\u003cimg src=\"https://img.shields.io/github/commit-activity/t/CodeFlightHub/Core.Packets?style=for-the-badge\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/CodeFlightHub/Core.Packets/graphs/contributors\"\u003e\u003cimg src=\"https://img.shields.io/github/contributors/CodeFlightHub/Core.Packets.svg?style=for-the-badge\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/CodeFlightHub/Core.Packets/network/members\"\u003e\u003cimg src=\"https://img.shields.io/github/forks/CodeFlightHub/Core.Packets.svg?style=for-the-badge\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/CodeFlightHub/Core.Packets/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/CodeFlightHub/Core.Packets.svg?style=for-the-badge\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/CodeFlightHub/Core.Packets/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/CodeFlightHub/Core.Packets.svg?style=for-the-badge\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/CodeFlightHub/Core.Packets/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/CodeFlightHub/Core.Packets.svg?style=for-the-badge\"\u003e\u003c/a\u003e\n\u003c/p\u003e\u003cbr /\u003e\n\nIn development stage.\n\n#  About\n\nThis project aims to enrich the open source community by providing core tools and patterns available as NuGet packages. It includes a set of tools and patterns covering recurring needs, common methods and functionalities commonly used in projects in the .NET core ecosystem. It aims to increase productivity by accelerating development processes.\n\n\n# Packages\n\n \n\n| Package Name | Package | Download |\n| ------------- | ------------- | ------------- |\n| CodeFlightHub.CorePackets.QuickExtend | [![](https://img.shields.io/nuget/v/CodeFlightHub.CorePackets.QuickExtend?style=for-the-badge)](https://www.nuget.org/packages/CodeFlightHub.CorePackets.QuickExtend) | [![](https://img.shields.io/nuget/dt/CodeFlightHub.CorePackets.QuickExtend?style=for-the-badge)](https://www.nuget.org/packages/CodeFlightHub.CorePackets.QuickExtend) |\n| CodeFlightHub.CorePackets.QuickRepository | - | - |\n| CodeFlightHub.CorePackets.QuickCache | - | - |\n\n# About QuickExtend \nQuickExtend is a library of extension methods that provide additional functionality to various .Net Core projects. This library aims to quickly solve common and recurring needs, usually facilitating the use of HttpClient to manage HTTP requests, from string manipulation to date and time operations, from Reflection operations to collection operations.\n\u003cul\u003e\n  \u003cli\u003eTotal 211 extension method\u003c/li\u003e\n  \u003cli\u003eTotal 457 unit test\u003c/li\u003e\n\u003c/ul\u003e\n\n\n| Extension Name | Method Count|\n| ------------- | ------------- | \n| Array | 17 | \n| Collection | 6 | \n| DateTime | 21 | \n| Dictionary | 17 | \n| Enum | 2 | \n| Enumerable | 9 | \n| HttpClient | 30 | \n| IPAddress | 36 | \n| Reflection | 10 | \n| Stream | 12 | \n| String | 25 | \n| Task | 4 | \n| Uri | 22 | \n\n### Array\n- `T[] Flatten\u003cT\u003e(this T[][] array)` : Flattens a jagged array (array of arrays) into a one-dimensional array.\n- `T[] FilterElements\u003cT\u003e(this T[] array, Func\u003cT, bool\u003e predicate)` : Filters the elements of an array based on a specified predicate function and returns a new array containing the filtered elements in reverse order.\n\n\n## String\n\n- `String? CapitalizeFirstLetter(this string? input)` : Capitalizes the first letter of each word in a string.\n- `TimeSpan ToTimeSpan(this string input, TimeSpan defaultValue = default)` : Converts a string to a TimeSpan. Returns the default value if conversion fails.\n\n## Reflection\n- `void InvokeMethodByName(this object obj, string methodName, params object[] parameters)` : Invokes the specified method by name on the provided object with the given parameters.\n- `void SetPropertyByName(this object obj, string propertyName, object newValue)` : Extension method that sets the value of a specified property for an object.\n\n\n## etc..  \n\n\n# IEnumerable Paginate\n\n\n```c#\n    /// \u003csummary\u003e\n    /// Paginates the items in a collection based on a specified page number and page size.\n    /// \u003c/summary\u003e\n    /// \u003ctypeparam name=\"T\"\u003eType of collection items.\u003c/typeparam\u003e\n    /// \u003cparam name=\"source\"\u003eCollection to be paginated.\u003c/param\u003e\n    /// \u003cparam name=\"pageNumber\"\u003eRequested page number.\u003c/param\u003e\n    /// \u003cparam name=\"pageSize\"\u003ePage size.\u003c/param\u003e\n    /// \u003creturns\u003eCollection paginated based on the specified page number and size.\u003c/returns\u003e\n    public static IEnumerable\u003cT\u003e Paginate\u003cT\u003e(this IEnumerable\u003cT\u003e source, int pageNumber, int pageSize)\n    {\n        if (source == null)\n            throw new ArgumentNullException(nameof(source));\n\n        return source.Skip((pageNumber - 1) * pageSize).Take(pageSize);\n    }\n\n```\n\n# Example Basic Usage QuickExtend \n\n```c#\nusing CodeFlightHub.CorePackets.QuickExtend;\n\n    internal class Program\n    {\n        static void Main(string[] args)\n        {\n            IEnumerable\u003cint\u003e source = Enumerable.Range(1, 100);\n            int pageNumber = 3;\n            int pageSize = 5;\n\n            var result = source.Paginate(pageNumber, pageSize);\n\n            result.ForEach(x =\u003e Console.WriteLine(x)); // 11 12 13 14 15\n        }\n    }\n```\n\n# License\n\nCodeFlightHub.CorePackets is **licensed** under the **[MIT License](https://github.com/Serhatkacmaz/Core.Packets/blob/master/LICENSE)**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeflighthub%2Fcore.packets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeflighthub%2Fcore.packets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeflighthub%2Fcore.packets/lists"}