Opengist Logo gist.melkat.dev

Explore

  • All gists
  • Topics
  • Users
melkat.dev
Give feedback on the new UI Powered by Opengist ⋅ 26ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
p

pixelfed

Recently created Least recently created Recently updated Least recently updated

melanie / Pixelfed Export Downloader to Markdown

Last active 3 months ago pixelfed

Takes the outbox.json Pixelfed export data and downloads the files and creates markdown files. Great for use with something like 11ty or Astro.

0 0 2
1 import { stringify } from "yaml";
2 import fs from "node:fs";
3 import https from "node:https";
4 import sanitize from "sanitize-html";
5
6 function omit(obj, props) {
7 obj = { ...obj };
8 props.forEach((prop) => delete obj[prop]);
9 return obj;
10 }