Extract specific profile fields from a JSON dump and export them as a formatted CSV file.
Fix Typography
- Reads a JSON file (
data.json) - Extracts:
title,real_name,display_name,email,status_text - Outputs a clean CSV with headers and escaped values
- Appends rows on subsequent runs (no overwrite)
- Node.js >= 18
npm installPlace your data as data.json in the project root.
npm startOutput is written to data.csv.
├── src/
│ ├── index.ts Entry point — reads JSON, extracts data
│ └── fs.ts CSV write logic
├── data.json Input data (gitignored)
├── tsconfig.json
├── package.json
└── README.md
json-to-csv, data-extraction, slack, typescript, nodejs