{"id":18246607,"url":"https://github.com/datvm/environmentsettings","last_synced_at":"2025-04-08T19:34:18.178Z","repository":{"id":143659102,"uuid":"131376949","full_name":"datvm/EnvironmentSettings","owner":"datvm","description":"A simple utility for using App Settings from Environment Variable","archived":false,"fork":false,"pushed_at":"2018-04-28T07:08:22.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T06:18:15.000Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/datvm.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.MD","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}},"created_at":"2018-04-28T05:44:47.000Z","updated_at":"2018-04-28T07:08:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"e8fe5cbc-cbbe-4fd4-8c86-ab3758909042","html_url":"https://github.com/datvm/EnvironmentSettings","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datvm%2FEnvironmentSettings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datvm%2FEnvironmentSettings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datvm%2FEnvironmentSettings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datvm%2FEnvironmentSettings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datvm","download_url":"https://codeload.github.com/datvm/EnvironmentSettings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247912766,"owners_count":21017044,"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":[],"created_at":"2024-11-05T09:26:58.151Z","updated_at":"2025-04-08T19:34:18.159Z","avatar_url":"https://github.com/datvm.png","language":"C#","readme":"This is a simple package for loading settings file from Environment Variable.\n\n# Installing\nYou can install the package from Nuget:\n\n    Install-Package LukeVo.EnvironmentSettings\nIf you want to use JSON, a package with [Newtonsoft JSON.NET](https://www.newtonsoft.com/json) dependency can be found here:\n\n    Install-Package LukeVo.EnvironmentSettings.Json\n\n# Usage\nThe package contains only a static utility class:\n\n        var settings = EnvironmentSettings.GetInstance(\n            \"MyAppSettingsPath\",\n            (fileContent) =\u003e fileContent);\nThe first parameter is the name of the **Environment Variable**. The value should be the path to a file. `fileContent` will be the content of the file, and you can then proceed with processing the input string (in the example above it simply returns the same string from the content of the file).\nYou can also specific where to search the value (Process - default, User or Machine):\n\n\t    var settings = EnvironmentSettings.GetInstance(\n\t        \"MyAppSettingsPath\",\n\t        EnvironmentVariableTarget.Machine,\n\t        (fileContent) =\u003e fileContent);\nIf you use the JSON package, you can also deserialize immediately into an object:\n\n        var result = JsonEnvironmentSettings.GetInstance\u003cMyAppSettings\u003e(\n            \"MyAppSettingsPath\");\n# Contribution\nPlease feel free to fork or submit issues if you find a bug or need some feature added.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatvm%2Fenvironmentsettings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatvm%2Fenvironmentsettings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatvm%2Fenvironmentsettings/lists"}