it-tools icon indicating copy to clipboard operation
it-tools copied to clipboard

[NEW TOOL] Properties to YAML converter

Open Yann39 opened this issue 2 years ago • 1 comments
trafficstars

What tool do you want? A properties to yaml converter. properties are mainly used in Java for configuration files.

Describe the solution you'd like The tool should allow to provide a content in properties format, and obtain the equivalent in yaml format. Possibly the reverse could also be interesting.

i.e.

# Server
server.port=                                                    8080
server.http2.enabled=                                           true
server.ssl.enabled=                                             true
server.ssl.key-alias=                                           localhost

# Database
spring.datasource.url=                                          jdbc:mysql://localhost:3306/db
spring.datasource.username=                                     root
spring.datasource.password=                                     1234
# Server
server:
    port: 8080
    http2:
        enabled: true
    ssl:
        enabled: true
        key-alias: localhost
# Database
spring:
    datasource:
        url: jdbc:mysql://localhost:3306/db
        username: root
        password: 1234

Is their example of this tool in the wild? There are several examples on the net, and there is also an Intellij plugin.

Additional context This could be useful to avoid having to use online tools or plugins, as such configuration files often contain sensitive information.

Yann39 avatar May 19 '23 14:05 Yann39

Hi @Yann39 and @CorentinTh , implemented in #820

sharevb avatar May 08 '24 12:05 sharevb