Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Tool for formating data (Json, Xml, CSS, SQL, ...)

Demo


  1. Json parser
  2. Xml parser
  3. Css parser
  4. Sql parser

Json parser

Input

{"name":"John", "age":31, "city":"New York"}

Output

{
    "name": "John",
    "age": 31,
    "city": "New York"
}

Xml parser

Input

<?xml version="1.0" encoding="UTF-8"?><note><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>

Output

<?xml version="1.0" encoding="UTF-8"?>
<note>
    <to>Tove</to>
    <from>Jani</from>
    <heading>Reminder</heading>
    <body>Don't forget me this weekend!</body>
</note>

CSS parser

Input

h1 {background-color: green;}div {background-color: lightblue;}p {background-color: yellow;}

Output

h1 {
     background-color: green;
}
 div {
     background-color: lightblue;
}
 p {
     background-color: yellow;
}

SQL parser

Input

SELECT Count(*) AS DistinctCountries FROM(SELECT DISTINCT Country FROM Customers);

Output

SELECT Count(*) AS DistinctCountries
FROM 
    (SELECT DISTINCT Country
    FROM Customers);

Like my stuff?

Would you like to buy me a coffee or send me a tip? While it's not expected, I would really appreciate it.

Paypal Buy Me A Coffee

About

json-formatter, xml-formatter, css-formatter, sql-formatter

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages