Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kalilistic/flexconfig
A dynamic configuration library to use with .net projects.
https://github.com/kalilistic/flexconfig
configuration dotnet
Last synced: about 1 month ago
JSON representation
A dynamic configuration library to use with .net projects.
- Host: GitHub
- URL: https://github.com/kalilistic/flexconfig
- Owner: kalilistic
- License: mit
- Created: 2022-09-16T17:19:41.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-30T20:49:31.000Z (8 months ago)
- Last Synced: 2024-07-04T17:44:12.833Z (8 months ago)
- Topics: configuration, dotnet
- Language: C#
- Homepage:
- Size: 112 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FlexConfig
[![Nuget](https://img.shields.io/nuget/v/FlexConfig)](https://www.nuget.org/packages/FlexConfig/)A dynamic configuration library to use with .net projects. Avoid creating oversized configuration objects with dozens or hundreds of properties. Set and get properties dynamically using keys instead! The library uses JSON for storing configurations and can support primitives and user-defined objects alike. Brought to you by [SheepGoMeh](https://github.com/SheepGoMeh) and [kalilistic](https://github.com/kalilistic).
### Example
```csharp
// create config obj
var config = new Configuration("config.json");// load existing config file at path
config.Load();// set property
config.Set("isEnabled", false);// save config file
config.Save();// retrieve property
var isEnabled = config.Get("isEnabled");```