melanie / Pixelfed Export Downloader to Markdown
0 likes
0 forks
2 files
Last active 8 months ago
Takes the outbox.json Pixelfed export data and downloads the files and creates markdown files. Great for use with something like 11ty or Astro.
| 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 | } |
Newer
Older