{"id":19292454,"url":"https://github.com/crequency/common.basichelper","last_synced_at":"2025-06-28T19:40:32.387Z","repository":{"id":64036907,"uuid":"572797282","full_name":"Crequency/Common.BasicHelper","owner":"Crequency","description":"Basic utils for all C# projects","archived":false,"fork":false,"pushed_at":"2025-01-01T17:38:17.000Z","size":546,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-12T06:04:50.825Z","etag":null,"topics":["core","dotnet","general-library","library"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Crequency.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"publiccode":null,"codemeta":null},"funding":null},"created_at":"2022-12-01T03:36:37.000Z","updated_at":"2024-10-10T13:16:36.000Z","dependencies_parsed_at":"2023-10-01T07:25:22.099Z","dependency_job_id":"44cb92ca-5205-4c29-9da0-7221c4ecbefd","html_url":"https://github.com/Crequency/Common.BasicHelper","commit_stats":null,"previous_names":[],"tags_count":74,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crequency%2FCommon.BasicHelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crequency%2FCommon.BasicHelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crequency%2FCommon.BasicHelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crequency%2FCommon.BasicHelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Crequency","download_url":"https://codeload.github.com/Crequency/Common.BasicHelper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250195033,"owners_count":21390230,"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":["core","dotnet","general-library","library"],"created_at":"2024-11-09T22:30:58.746Z","updated_at":"2025-04-22T07:31:45.286Z","avatar_url":"https://github.com/Crequency.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"#\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cimg width=\"128\" src=\"https://raw.githubusercontent.com/Crequency/Common.BasicHelper/main/Common.BasicHelper/icon.png\" alt=\"Common.BasicHelper Logo\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eCommon.BasicHelper\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"GitHub License\" src=\"https://img.shields.io/github/license/Crequency/Common.BasicHelper\"\u003e\n  \u003cimg alt=\"GitHub workflow status\" src=\"https://img.shields.io/github/actions/workflow/status/Crequency/Common.BasicHelper/build.yml\"\u003e\u003c/img\u003e\n  \u003cimg alt=\"Nuget\" src=\"https://img.shields.io/nuget/v/Common.BasicHelper\"\u003e\n  \u003cimg alt=\"Nuget\" src=\"https://img.shields.io/nuget/dt/Common.BasicHelper?label=nuget\"\u003e\n  \u003cimg alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues/Crequency/Common.BasicHelper\"\u003e\n  \u003cimg alt=\"GitHub pull requests\" src=\"https://img.shields.io/github/issues-pr/Crequency/Common.BasicHelper\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://profile-counter.glitch.me/Crequency-Common.BasicHelper/count.svg\"\u003e\u003c/img\u003e\n\u003c/p\u003e\n\n# About\n\nCommon.BasicHelper is a collection of helper functions for dotnet platform (C# mainly).\n\nYou can easily use it in your project through NuGet.\n\nVia dotnet cli\n\n```shell\ndotnet add package Common.BasicHelper\n```\n\n# Samples\n\nWe provide some samples in `Commong.BasicHelper.Samples` project.\n\nTo run this project, just run commands:\n\n```shell\ncd Common.BasicHelper.Samples\ndotnet run\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eThe output will looks like ...\u003c/summary\u003e\n\n\u003cbr\u003e\n\n```plaintext\ninfo: Microsoft.Hosting.Lifetime[14]\n      Now listening on: http://localhost:\u003cport\u003e\ninfo: Microsoft.Hosting.Lifetime[0]\n      Application started. Press Ctrl+C to shut down.\ninfo: Microsoft.Hosting.Lifetime[0]\n      Hosting environment: Development\ninfo: Microsoft.Hosting.Lifetime[0]\n      Content root path: \u003cpath\u003e\n```\n\n`\u003cport\u003e` label is the port number of the server.\n\nThen you can visit `http://localhost:\u003cport\u003e/swagger/index.html` to see the samples.\n\n\u003c/details\u003e\n\n# Usage\n\n## Math\n\n### Calculate\n\nWith `Expression` class and `Calculator` class, you can calculate your calculation.\nSee examples of [Expression](./Common.BasicHelper.Test/Math/Expression_Tests.cs) class and [Calculator](./Common.BasicHelper.Test/Math/Calculator_Tests.cs) class.\n\n## Extensions\n\nYou can use follow namespace to use extensions:\n\n```CSharp\nusing Common.BasicHelper.Utils.Extensions;\n```\n\nSuch as extensions in `QueueHelper`:\n\n```CSharp\nvar queue = new Queue\u003cint\u003e()\n    .Push(1)\n    .Push(2)\n    .Pop()\n    .Push(3)\n    .Push(4)\n    .Pop()\n    .Push(5)\n    ;\nqueue.Dump(); // Result will be \"3 4 5 \"\n```\n\nAnd you can execute a string as a system command:\n\n```CSharp\n\"help\".ExecuteAsCommand();\n```\n\nAnd you can pass arguments through parameters `args`.\n\n## More\n\nMore extensions can be find in our docs later.\n\nWe will be appreciate if you can help us with docs site.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrequency%2Fcommon.basichelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrequency%2Fcommon.basichelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrequency%2Fcommon.basichelper/lists"}