Skip to content

Commit

Permalink
doc: Add readme.md file
Browse files Browse the repository at this point in the history
- add properties yaml converter
  • Loading branch information
developerlee79 committed Nov 17, 2023
1 parent 9179c36 commit dae54a4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Simple Dev Utilities

---

<br>

> Upload seemingly trivial utilities that may appear useless at first glance but could prove to be unexpectedly necessary or valuable
<br>

TOC

[.properties -> .yaml format converter](#properties---yaml-format-converter)

<br>

### .properties -> .yaml format converter

Convert .properties file format to .yaml file format.

```kotlin
class Test {

@Test
fun convertPropertiesToYaml() {
// given
val propertyString = "kotlin.code.style=official"
// when
val yamlConverter = YamlConverter()
val yamlString = yamlConverter.convertToYaml(propertyString)
// then
require("kotlin: \n code: \n style: official\n\n" == yamlString)
}

}
```

0 comments on commit dae54a4

Please sign in to comment.