Ironunits
✓ Published0🌍 Public
Aabernier
Last edited May 26, 2020
Created on May 26, 2020
This example converts a Google Sheets CSV of course content into a structured JSON outline for the `md2oedx` platform. It first downloads the CSV via `curl`, parses it with `csvtojson`, then reorganizes the rows into nested `chapter`, `sequential`, and `vertical` objects based on spreadsheet columns. The tool filters rows by an `active` flag and outputs the final hierarchy as an `index.json` file. The code uses Node.js `child_process` and the `csvtojson` library, with no visualization libraries involved.
AI-generated descriptionIronunits
Generates an index.json file for md2oedx from that spreadsheet CSV: https://docs.google.com/spreadsheets/d/1RiieTGx6PQWkyU52yTXEWN-u5-8njN1zfdXLWm2Nn2c/edit
$ npx https://gist.github.com/abernier/9a2287044da384f44ae7c80f10745912 pt https://docs.google.com/spreadsheets/d/e/2PACX-1vTj9crFXFRl9MjP5ibW7210C-cmkdPI1EgzQK1rTYN0SMFpSGe0piWtf40H3S-LDtPVfbYnaDOpvW_N/pub?output=csv