Skip to content

Commit dae54a4

Browse files
doc: Add readme.md file
- add properties yaml converter
1 parent 9179c36 commit dae54a4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

readme.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Simple Dev Utilities
2+
3+
---
4+
5+
<br>
6+
7+
> Upload seemingly trivial utilities that may appear useless at first glance but could prove to be unexpectedly necessary or valuable
8+
9+
<br>
10+
11+
TOC
12+
13+
[.properties -> .yaml format converter](#properties---yaml-format-converter)
14+
15+
<br>
16+
17+
### .properties -> .yaml format converter
18+
19+
Convert .properties file format to .yaml file format.
20+
21+
```kotlin
22+
class Test {
23+
24+
@Test
25+
fun convertPropertiesToYaml() {
26+
// given
27+
val propertyString = "kotlin.code.style=official"
28+
// when
29+
val yamlConverter = YamlConverter()
30+
val yamlString = yamlConverter.convertToYaml(propertyString)
31+
// then
32+
require("kotlin: \n code: \n style: official\n\n" == yamlString)
33+
}
34+
35+
}
36+
```

0 commit comments

Comments
 (0)