CorentinTh / it-tools

Collection of handy online tools for developers, with great UX.
https://it-tools.tech
GNU General Public License v3.0
18.39k stars 2.21k forks source link

[NEW TOOL] Properties to YAML converter #411

Open Yann39 opened 1 year ago

Yann39 commented 1 year ago

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.

sharevb commented 1 month ago

Hi @Yann39 and @CorentinTh , implemented in #820