Skip to content

This Repo has source code to a web application which is designed on HTML, CSS & JS. This webapp can convert YAML to Properties & Properties to YAML by providing some additional useful features for mulesoft developers.

Notifications You must be signed in to change notification settings

Upendra-Thunuguntla/mule-yaml-tools

Repository files navigation

Docker Build and Push Deploy static content to Pages

YAML Tools

Why ?

I created this tool with intention to help myself as well as fellow developers and community. So, let’s dig into it and see what it can do and how it can help you in day to day development as Mulesoft developer.

Usage

You can access the Web Application directly here: 🌏 Web app Link : https://upendra-thunuguntla.github.io/mule-yaml-tools/

or Run on Docker:

There are 2 options in this application:

1️⃣ YAML to Properties Converter

2️⃣ Properties to YAML Converter

YAML to Properties Converter

Using this section we can convert YAML file to Properties file. It has many other options.

Choose a YAML file using browse button or Paste YAML content into the text area to start the process. If you choose a file all the content will be automatically read from file and prefilled in the Text area.

🤞 Consider the following as input

database:
  host: "localhost"

🌠 Convert to Properties :

Once the input is added, just click on Convert button to see the converted properties content in the result section.

database.host=localhost

🌠 Get Keys only :

You can choose this option if you want to get only keys to use in mule flows. Choose and click on convert to process the input.

database.host

🌠 Enclose in ${**key**}:

You can choose this option if you want to get only keys but add generic property placeholder. Choose Get keys only and this then click on convert to process the input.

This will be enabled only if Get Keys only option is checked

${database.host}

🌠 Enclose in Mule::p(“**key**”):

You can choose this option if you want to get only keys but add Dataweave property placeholder. Choose Get keys only and this then click on convert to process the input.

This will be enabled only if Get Keys only option is checked

Mule::p("database.host")

🥳 Filter on elements:

This option allows user to filter through output properties to fetch only those that are matching the filter criteria

🌠 Remove YAML Values:

This conversion is useful when moving from environment to environment such as DEV to UAT or UAT to PROD etc.

We happen to forget adding some key-value pairs when moving to different environments as there will be seperate file used. This will solve that issue by removing all the values from input and keeping the keys and empty placeholders for the user to add new values.

database:
 host: ''

📋 Copy to Clipboard:

Copies the Content in Result section to Clipboard.

📁Download :

Takes file name as input and downloads a file with Given name and resulting output.

🚀 If any value is a encrypted value i.e., starts with ![ then in the result of Get Keys only will have secure:: appended as prefix to each entry.

Properties to YAML Converter

This section also has similar functions as previous and works in a similar manner while providing vast range of fucntions.

Make sure to bookmark this link and share with fellow developers 🐱‍🏍.

About

This Repo has source code to a web application which is designed on HTML, CSS & JS. This webapp can convert YAML to Properties & Properties to YAML by providing some additional useful features for mulesoft developers.

Topics

Resources

Stars

Watchers

Forks