mkdir -p ~/temp
cd ~/temp
# Clone sample code
git clone https://github.com/debezium/debezium-examples.git
cd ./debezium-examples/tutorial
alias docker-compose="docker compose"
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 fs = require('fs').promises | |
/** | |
* Overwrites the content of a JSON file with indentation added. | |
* @param {string} filePath Path to the JSON file. | |
* @param {number} indentation Number of spaces used in indentation. | |
* @returns {Promise<void>} | |
*/ | |
async function indentJsonFile (filePath, indentation = 2) { | |
const fileContent = await fs.readFile(filePath, { encoding: 'utf-8' }) |