Created
April 28, 2023 18:22
-
-
Save angeloevangelista/a3af18c93b2c3c72cfc484e6e051459a to your computer and use it in GitHub Desktop.
It formats json on AWS Secrets manager page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
const preEl = document.querySelector("pre"); | |
const jsonPreEl = document.createElement('pre'); | |
jsonPreEl.innerText = [ | |
"Your pretty json 😉", | |
'', | |
JSON.stringify(JSON.parse(document.querySelectorAll("pre")[0].textContent), null, 2), | |
].join('\n'); | |
preEl.parentElement.appendChild(jsonPreEl); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment