This file contains hidden or 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
#!/usr/bin/env node | |
// Requires Node 14+ | |
const fs = require('fs/promises'); | |
const yaml = require('yaml'); | |
const markdown = require('micromark'); | |
async function main () { | |
const recipeFiles = await fs.readdir('./recipes'); | |
let recipesByCategory = {}; | |
for (const filepath of recipeFiles) { |
OlderNewer