Skip to content

Instantly share code, notes, and snippets.

@fandyaditya
fandyaditya / formatter.js
Created August 4, 2023 13:11
Node.js Script to Convert Notion Markdown Metadata into Hugo
const fs = require('fs');
const path = require('path');
const folderPath = 'path_to_folder'; // Replace with the path to your folder containing markdown files
fs.readdir(folderPath, (err, files) => {
if (err) {
console.error('Error reading directory:', err);
return;
}