https://github.com/zeyso/configmanager
Simple ConfigManager for Json and Yaml Configs
https://github.com/zeyso/configmanager
json yaml
Last synced: about 2 months ago
JSON representation
Simple ConfigManager for Json and Yaml Configs
- Host: GitHub
- URL: https://github.com/zeyso/configmanager
- Owner: Zeyso
- Created: 2025-03-17T12:30:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-28T09:35:34.000Z (about 1 year ago)
- Last Synced: 2025-06-20T03:05:50.801Z (about 1 year ago)
- Topics: json, yaml
- Language: Java
- Homepage: https://zeyso.xyz
- Size: 39.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ConfigManager
## Table of Contents
- [MavenSetup](#Maven)
- [JsonExamples](#JsonExamples)
- [YmlExamples](#YmlExamples)
## Maven
xyz.zeyso
https://repo.zeyso.xyz/repo/
xyz.zeyso
configmanager
1.0.0
## JsonExamples
### Example for creating Json File
JsonManager jsonManager = new JsonManager("test");
jsonManager.createFile();
### Example for creating Json File with directory
jsonManager.createFile("file", "directory");
### Example for deleting Json Files
jsonManager.deleteFile();
### Example for reading Json Files value
jsonManager.readLine("key")
### Example for adding Json Files value
jsonManager.writeLine("key", "value");
### Example for adding Json Files Values
String [] keys = {"value1", "value2", "value3"};
jsonManager.writeLine("test", keys);
### Example for updating Json Files value
jsonManager.updateValue("key", "value");
### Example for deleting Json Files line
jsonManager.deleteLine("key");
### Example for deleting Json Files value
jsonManager.deleteValue("key");
## YmlExamples
### Example for creating YML File
YmlManager ymlManager = new YmlManager("test");
ymlManager.createFile();
### Example for creating YML File with directory
ymlManager.createFile("file", "directory");
### Example for deleting YML File
ymlManager.deleteFile();
### Example for reading YML Files value
ymlManager.readLine("key")
### Example for adding YML Files value
ymlManager.writeLine("key", "value");
### Example for updating YML Files value
ymlManager.updateValue("key", "value");
### Example for deleting YML Files line
ymlManager.updateValue("key");
### Example for deleting YML Files value
ymlManager.updateValue("key");