{
  "id": "task_libraries:csv/javascript",
  "path": "/exapedia/javascript-csv-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript CSV libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript CSV libraries parse comma-separated text into rows and turn rows back into CSV. A streaming parser reads a large file row by row rather than loading the whole file into memory. These libraries handle spreadsheet uploads, data exports, and bulk imports in web apps and Node.js services."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript CSV libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#d-dsv",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F138"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fast-csv-format",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F155"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fast-csv-parse",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F174"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#csv-parse",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F193"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#exceljs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F210"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#papa-parse",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F228"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#xlsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F245"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#csv-stringify",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F259"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#d-dsv",
          "label": [
            {
              "t": "fact",
              "fact": "F1"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F139"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Parse CSV",
            "Write CSV",
            "Incremental CSV input"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#d-dsv",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F138"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fast-csv-format",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F155"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#fast-csv-parse",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F174"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#csv-parse",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F193"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#exceljs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F210"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#papa-parse",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F228"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#xlsx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F245"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#csv-stringify",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F259"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F271"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "d-dsv",
          "name": [
            {
              "t": "fact",
              "fact": "F138"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/d3/d3-dsv"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/d3-dsv"
            },
            {
              "label": "Docs",
              "href": "https://d3js.org/d3-dsv"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F11"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F141"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://d3js.org/d3-dsv",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F138"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F12"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mapbox/geojson.io",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F153"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function csvToGeoJSON(\n  csv: string,\n  options: ImportOptions['csvOptions'],\n  progress: ProgressCb\n): Promise<FeatureCollection> {\n  if (!options) throw new Error('Options should not be undefined');\n  const { kind, delimiter } = options;\n\n  let i = 0;\n  const rows = dsvFormat(delimiter).parse(csv);\n  const features: Feature[] = [];\n\n  // Preflight checks\n  switch (kind) {\n    case 'geojson':\n    case 'wkt':\n    case 'polyline':\n    case 'lonlat': {\n      break;\n    }\n  }\n\n  progress({ total: rows.length, done: 0 });\n\n  for (const row of rows) {\n    const castRow: JsonObject = options.autoType\n      ? autoType(row, options)\n      : (row as JsonObject);\n    switch (kind) {\n      case 'lonlat': {\n        const feature = castRowLonLat(\n          castRow,\n          EnforcedLonLatOptions.parse(options)\n        );\n        if (feature) {\n          features.push(feature);\n        }\n        break;\n      }\n      case 'wkt': {\n        const feature = castRowWKT(castRow, EnforcedWKTOptions.parse(options));\n        if (feature) {\n          features.push(feature);\n        }\n        break;\n      }\n      case 'geojson': {\n        const feature = castRowGeoJSON(\n          castRow,\n          EnforcedWKTOptions.parse(options)\n        );\n        if (feature) {\n          features.push(feature);\n        }\n        break;\n      }\n      case 'polyline': {\n        const feature = castRowPolyline(\n          castRow,\n          EnforcedWKTOptions.parse(options)\n        );\n        if (feature) {\n          features.push(feature);\n        }\n        break;\n      }\n    }\n    progress({ total: rows.length, done: ++i });\n  }\n\n  return {\n    type: 'FeatureCollection',\n    features: features\n  };\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mapbox/geojson.io/blob/e62e8cbaedd5c449980fde6e70fd8719486bd5b5/app/lib/convert/local/csv_to_geojson.ts#L100-L174",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F152"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20d3-dsv%20to%20import%20CSV%20rows%2C%20format%20downloadable%20files%20and%20transform%20datasets&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F138"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { csvParse } from 'd3-dsv';\n\nconst rows = csvParse('name,score\\nAda,42');\nconsole.log(rows);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://d3js.org/d3-dsv",
                  "label": [
                    {
                      "t": "text",
                      "text": "API reference"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F143"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "fast-csv-format",
          "name": [
            {
              "t": "fact",
              "fact": "F155"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/C2FO/fast-csv"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@fast-csv/format"
            },
            {
              "label": "Docs",
              "href": "https://c2fo.github.io/fast-csv/docs/formatting/methods/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F278"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://c2fo.github.io/fast-csv/docs/formatting/methods/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F155"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F279"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F280"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F281"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F282"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/solana-foundation/explorer",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export async function generateReceiptCsv(\n    receipt: FormattedReceipt,\n    signature: string,\n    usdValue?: string,\n): Promise<void> {\n    const rows = buildReceiptCsvRows(receipt, signature, usdValue);\n    const csv = await writeToString(rows, { headers: [...CSV_HEADERS] });\n\n    const blob = new Blob([csv], { type: 'text/csv;charset=utf-8;' });\n    const url = URL.createObjectURL(blob);\n    try {\n        const link = document.createElement('a');\n        link.href = url;\n        link.download = `solana-receipt-${signature}.csv`;\n        document.body.appendChild(link);\n        try {\n            link.click();\n        } finally {\n            document.body.removeChild(link);\n        }\n    } finally {\n        URL.revokeObjectURL(url);\n    }\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/solana-foundation/explorer/blob/62e47975f463f6e09531deb072ebf36f7ffb0adf/app/features/receipt/lib/generate-receipt-csv.ts#L82-L105",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F171"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40fast-csv/format%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F155"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { writeToString } from '@fast-csv/format';\n\nconst csv = await writeToString([{ name: 'Ada', score: 42 }], { headers: true });\nconsole.log(csv);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://c2fo.github.io/fast-csv/docs/formatting/methods/",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F160"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "fast-csv-parse",
          "name": [
            {
              "t": "fact",
              "fact": "F174"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/C2FO/fast-csv"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@fast-csv/parse"
            },
            {
              "label": "Docs",
              "href": "https://c2fo.github.io/fast-csv/docs/parsing/methods/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F283"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://c2fo.github.io/fast-csv/docs/parsing/methods/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F174"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F284"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F285"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F286"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F287"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F288"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F289"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/jvalue/jayvee",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F191"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async function parseAsCSV(\n  text: string,\n  parseOptions: ParserOptionsArgs,\n): Promise<string[][]> {\n  return new Promise((resolve, reject) => {\n    const rows: string[][] = [];\n    parseStringAsCsv(text, parseOptions)\n      .on('data', (row: string[]) => {\n        rows.push(row);\n      })\n      .on('error', (error) =>\n        reject(\n          new Error(\n            `Unexpected error while parsing CSV: ${error.name}: ${error.message}`,\n          ),\n        ),\n      )\n      .on(\n        'data-invalid',\n        (row: Row | null, rowCount: number, reason?: string) =>\n          reject(\n            new Error(\n              `Invalid row ${rowCount}: ${\n                reason ?? 'Unknwon reason'\n              }: ${JSON.stringify(row ?? '')}`,\n            ),\n          ),\n      )\n      .on('end', () => {\n        resolve(rows);\n      });\n  });\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/jvalue/jayvee/blob/f0c3d994778d20f40db4b29b57a6b97314ca3aa7/libs/extensions/tabular/exec/src/lib/csv-interpreter-executor.ts#L77-L109",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F190"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40fast-csv/parse%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F174"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { parseString } from '@fast-csv/parse';\n\nparseString('name,score\\nAda,42', { headers: true })\n  .on('error', console.error)\n  .on('data', console.log);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://c2fo.github.io/fast-csv/docs/parsing/methods/",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.d.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F179"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "csv-parse",
          "name": [
            {
              "t": "fact",
              "fact": "F193"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/adaltas/node-csv"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/csv-parse"
            },
            {
              "label": "Docs",
              "href": "https://csv.js.org/parse/api/sync/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F61"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://csv.js.org/parse/api/sync/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F193"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/simstudioai/sim",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export async function parseCsvBuffer(\n  input: Buffer | Uint8Array | string,\n  delimiter = ','\n): Promise<{\n  headers: string[]\n  rows: Record<string, unknown>[]\n  rejections: CsvRejectionSummary\n}> {\n  const { parse } = await import('csv-parse/sync')\n\n  const text = decodeCsvText(input)\n\n  let headers: string[] = []\n  const rejections = createCsvRejectionCollector()\n  const options = csvParseOptions(\n    delimiter,\n    (h) => {\n      headers = h\n    },\n    rejections.onSkip\n  )\n  // double-cast-allowed: shared csvParseOptions() loses the `columns` literal that drives\n  // csv-parse's record-vs-string[][] overload, but `columns` is always set so records are objects\n  const parsed = parse(text, options) as unknown as Record<string, unknown>[]\n\n  if (parsed.length === 0) {\n    throw new OrchestrationError('validation', 'CSV file has no data rows')\n  }\n\n  if (headers.length === 0) {\n    throw new OrchestrationError('validation', 'CSV file has no headers')\n  }\n\n  return { headers, rows: parsed, rejections: rejections.summary }\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/simstudioai/sim/blob/edf5f0a47da8147466cb893c0a1666058331d42e/apps/sim/lib/table/import.ts#L344-L378",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F207"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20csv-parse%20to%20import%20CSV%20rows%2C%20format%20downloadable%20files%20and%20transform%20datasets&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F193"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import assert from \"node:assert\";\nimport { parse } from \"csv-parse/sync\";\n\nconst input = `\n\"key_1\",\"key_2\"\n\"value 1\",\"value 2\"\n`;\nconst records = parse(input, {\n  columns: true,\n  skip_empty_lines: true,\n});\nassert.deepStrictEqual(records, [{ key_1: \"value 1\", key_2: \"value 2\" }]);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://csv.js.org/parse/api/sync/",
                  "label": [
                    {
                      "t": "text",
                      "text": "Sync API"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F198"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "exceljs",
          "name": [
            {
              "t": "fact",
              "fact": "F210"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/exceljs/exceljs"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/exceljs"
            },
            {
              "label": "Docs",
              "href": "https://cdn.jsdelivr.net/npm/exceljs@4.4.0/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F217"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/exceljs@4.4.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F210"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/apitable/apitable",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "const exportCSV = async (workbook: Workbook, fileName: string, isView?: boolean) => {\n  await workbook.csv.writeBuffer({ encoding: 'UTF-8' }).then((buffer) => {\n    const blob = new Blob(['\\uFEFF' + buffer], { type: 'text/csv;charset=utf-8;' });\n    const link = document.createElement('a');\n    link.href = window.URL.createObjectURL(blob);\n    link.download = `${fileName}.csv`;\n    link.click();\n    Message.success({\n      content: isView ? t(Strings.import_view_data_succeed) : t(Strings.import_file_data_succeed),\n    });\n  });\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/apitable/apitable/blob/c9255a752a85913e2e6b362ff6c306b0fc3585df/packages/datasheet/src/pc/utils/catalog.ts#L335-L346",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F225"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=exceljs%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F210"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const ExcelJS = require('exceljs');\n\nconst workbook = new ExcelJS.Workbook();\nworkbook.csv.readFile('input.csv').then(worksheet => {\n  console.log(worksheet.rowCount);\n});\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/exceljs@4.4.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F215"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "papa-parse",
          "name": [
            {
              "t": "fact",
              "fact": "F228"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mholt/PapaParse"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/papaparse"
            },
            {
              "label": "Docs",
              "href": "https://www.papaparse.com/docs"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F85"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.papaparse.com/docs",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F228"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F86"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F87"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F88"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F92"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/TryGhost/Ghost",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F243"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export default function serialize(\n  rows: Array<Record<string, unknown>>,\n  { columns, header = true }: SerializeOptions = {},\n): string {\n  return papaparse.unparse(rows, { columns, header, escapeFormulae: true });\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/TryGhost/Ghost/blob/6091cc5bc67b040b4a27b713ee643de65fb0c6ce/ghost/core/server/services/members/import-export/csv/serialize.ts#L13-L18",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20papaparse%20to%20import%20CSV%20rows%2C%20format%20downloadable%20files%20and%20transform%20datasets&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F228"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import Papa from 'papaparse';\n\nconst result = Papa.parse('name,score\\nAda,42', { header: true });\nconsole.log(result.data);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.papaparse.com/docs",
                  "label": [
                    {
                      "t": "text",
                      "text": "Papa Parse docs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F233"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "xlsx",
          "name": [
            {
              "t": "fact",
              "fact": "F245"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/SheetJS/sheetjs"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/xlsx"
            },
            {
              "label": "Docs",
              "href": "https://docs.sheetjs.com/docs/api/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F252"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.sheetjs.com/docs/api/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F245"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F297"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F298"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import * as XLSX from 'xlsx';\n\nconst workbook = XLSX.read('name,score\\nAda,42', { type: 'string' });\nconsole.log(workbook.SheetNames);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.sheetjs.com/docs/api/",
                  "label": [
                    {
                      "t": "text",
                      "text": "API reference"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=xlsx%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F245"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F250"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "csv-stringify",
          "name": [
            {
              "t": "fact",
              "fact": "F259"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/adaltas/node-csv"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/csv-stringify"
            },
            {
              "label": "Docs",
              "href": "https://csv.js.org/stringify/api/sync/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F290"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://csv.js.org/stringify/api/sync/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F259"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F291"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F292"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F293"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F294"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F295"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F296"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F276"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F277"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/gristlabs/grist-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F276"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function convertToDsv(data: ExportData, options: ConvertToDsvOptions) {\n  const { rowIds, access, columns: viewColumns } = data;\n  const { delimiter, header } = options;\n  // create formatters for columns\n  const formatters = viewColumns.map(col => col.formatter);\n  // Arrange the data into a row-indexed matrix, starting with column headers.\n  const csvMatrix = [viewColumns.map(col => getExportHeader(col, header))];\n  // populate all the rows with values as strings\n  rowIds.forEach((row) => {\n    csvMatrix.push(access.map((getter, c) => formatters[c].formatAny(getter(row))));\n  });\n  return stringifyAsync(csvMatrix, { delimiter });\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/gristlabs/grist-core/blob/38a777c03000fb15abad1e8a93316fb9a75f1e89/app/server/lib/ExportDSV.ts#L135-L147",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F275"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=csv-stringify%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F259"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { stringify } from \"csv-stringify/sync\";\nimport assert from \"node:assert\";\n\nconst output = stringify([\n  [\"1\", \"2\", \"3\", \"4\"],\n  [\"a\", \"b\", \"c\", \"d\"],\n]);\n\nassert.equal(output, \"1,2,3,4\\na,b,c,d\\n\");\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://csv.js.org/stringify/api/sync/",
                  "label": [
                    {
                      "t": "text",
                      "text": "Sync API"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F264"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "What is Papa Parse?",
      "a": [
        {
          "t": "link",
          "href": "#papa-parse",
          "label": [
            {
              "t": "text",
              "text": "Papa Parse"
            }
          ]
        },
        {
          "t": "text",
          "text": " parses delimited text in browsers and Node.js and serializes records back to CSV. It detects common delimiters when the delimiter option is left blank."
        }
      ]
    },
    {
      "q": "What is csv-parse?",
      "a": [
        {
          "t": "link",
          "href": "#csv-parse",
          "label": [
            {
              "t": "text",
              "text": "csv-parse"
            }
          ]
        },
        {
          "t": "text",
          "text": " parses CSV into records in Node.js through streaming, callback, and synchronous APIs. Its companion package "
        },
        {
          "t": "link",
          "href": "#csv-stringify",
          "label": [
            {
              "t": "text",
              "text": "csv-stringify"
            }
          ]
        },
        {
          "t": "text",
          "text": " writes CSV."
        }
      ]
    },
    {
      "q": "Papa Parse vs csv-parse: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#papa-parse",
          "label": [
            {
              "t": "text",
              "text": "Papa Parse"
            }
          ]
        },
        {
          "t": "text",
          "text": " parses files in the browser, with worker mode to keep the page responsive. "
        },
        {
          "t": "link",
          "href": "#csv-parse",
          "label": [
            {
              "t": "text",
              "text": "csv-parse"
            }
          ]
        },
        {
          "t": "text",
          "text": " implements the Node.js stream Transform API for server-side imports."
        }
      ]
    },
    {
      "q": "How do I convert JSON to CSV in JavaScript?",
      "a": [
        {
          "t": "text",
          "text": "In the browser, "
        },
        {
          "t": "code",
          "text": "Papa.unparse"
        },
        {
          "t": "text",
          "text": " from "
        },
        {
          "t": "link",
          "href": "#papa-parse",
          "label": [
            {
              "t": "text",
              "text": "Papa Parse"
            }
          ]
        },
        {
          "t": "text",
          "text": " turns an array of objects into CSV text. In Node.js, "
        },
        {
          "t": "link",
          "href": "#csv-stringify",
          "label": [
            {
              "t": "text",
              "text": "csv-stringify"
            }
          ]
        },
        {
          "t": "text",
          "text": " converts records into CSV through a stream or a synchronous call."
        }
      ]
    },
    {
      "q": "Which library automatically detects the CSV delimiter?",
      "a": [
        {
          "t": "fact",
          "fact": "F120"
        }
      ]
    },
    {
      "q": "Can object-row parsing run under a strict content security policy?",
      "a": [
        {
          "t": "fact",
          "fact": "F132"
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, d3-dsv",
      "display": "d3-dsv",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, d3-dsv",
      "display": "129.0M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, d3-dsv",
      "display": "ISC",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, d3-dsv",
      "display": "3.0.2",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, d3-dsv",
      "display": "v3.0.2",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, d3-dsv",
      "display": "446",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Reads CSV records, d3-dsv",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Writes CSV files, d3-dsv",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Output formats, d3-dsv",
      "display": "CSV, TSV",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Install, d3-dsv",
      "display": "npm install d3-dsv",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "What it does, d3-dsv",
      "display": "Parses and formats CSV, TSV and other single-character delimited text.",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "strengths lead, d3-dsv",
      "display": "Parses and formats CSV/TSV",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths, d3-dsv",
      "display": "Convert delimited text into rows and serialize records back to text.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, d3-dsv",
      "display": "Converts row values explicitly",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, d3-dsv",
      "display": "Supply a row conversion function when numbers or dates are required.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "limitations lead, d3-dsv",
      "display": "Object parsing needs unsafe-eval",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations, d3-dsv",
      "display": "Use parseRows when the content security policy blocks generated code.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, d3-dsv",
      "display": "Duplicate column names overwrite values",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, d3-dsv",
      "display": "Use parseRows to retain every value under repeated column names.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Quickstart, d3-dsv",
      "display": "d3.csvParse(\"foo,bar\\n1,2\"); // [{foo: \"1\", bar: \"2\"}, columns: [\"foo\", \"bar\"]]\nd3.tsvParse(\"foo\\tbar\\n1\\t2\"); // [{foo: \"1\", bar: \"2\"}, columns: [\"foo\", \"bar\"]]\n\n\nd3.csvFormat([{foo: \"1\", bar: \"2\"}]); // \"foo,bar\\n1,2\"\nd3.tsvFormat([{foo: \"1\", bar: \"2\"}]); // \"foo\\tbar\\n1\\t2\"\n\n\nconst psv = d3.dsvFormat(\"|\");\n\nconsole.log(psv.parse(\"foo|bar\\n1|2\")); // [{foo: \"1\", bar: \"2\"}, columns: [\"foo\", \"bar\"]]\n\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function, d3-dsv",
      "display": "export function csvToGeoJSON(\n  csv: string,\n  options: ImportOptions['csvOptions'],\n  progress: ProgressCb\n): Promise<FeatureCollection> {\n  if (!options) throw new Error('Options should not be undefined');\n  const { kind, delimiter } = options;\n\n  let i = 0;\n  const rows = dsvFormat(delimiter).parse(csv);\n  const features: Feature[] = [];\n\n  // Preflight checks\n  switch (kind) {\n    case 'geojson':\n    case 'wkt':\n    case 'polyline':\n    case 'lonlat': {\n      break;\n    }\n  }\n\n  progress({ total: rows.length, done: 0 });\n\n  for (const row of rows) {\n    const castRow: JsonObject = options.autoType\n      ? autoType(row, options)\n      : (row as JsonObject);\n    switch (kind) {\n      case 'lonlat': {\n        const feature = castRowLonLat(\n          castRow,\n          EnforcedLonLatOptions.parse(options)\n        );\n        if (feature) {\n          features.push(feature);\n        }\n        break;\n      }\n      case 'wkt': {\n        const feature = castRowWKT(castRow, EnforcedWKTOptions.parse(options));\n        if (feature) {\n          features.push(feature);\n        }\n        break;\n      }\n      case 'geojson': {\n        const feature = castRowGeoJSON(\n          castRow,\n          EnforcedWKTOptions.parse(options)\n        );\n        if (feature) {\n          features.push(feature);\n        }\n        break;\n      }\n      case 'polyline': {\n        const feature = castRowPolyline(\n          castRow,\n          EnforcedWKTOptions.parse(options)\n        );\n        if (feature) {\n          features.push(feature);\n        }\n        break;\n      }\n    }\n    progress({ total: rows.length, done: ++i });\n  }\n\n  return {\n    type: 'FeatureCollection',\n    features: features\n  };\n}\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function reference, d3-dsv",
      "display": "csv_to_geojson.ts · csvToGeoJSON()",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project repository, d3-dsv",
      "display": "mapbox/geojson.io",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project stars, mapbox/geojson.io",
      "display": "2.3K",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project push date, mapbox/geojson.io",
      "display": "Aug 2026",
      "asOf": "2026-08-17"
    },
    "F26": {
      "label": "Library name, fast-csv",
      "display": "Fast-CSV",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Monthly downloads, fast-csv",
      "display": "109.1M",
      "asOf": "2026-11-15"
    },
    "F28": {
      "label": "License, fast-csv",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Package release, fast-csv",
      "display": "5.0.8",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Undated package release, fast-csv",
      "display": "v5.0.8",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Repository stars, fast-csv",
      "display": "1.8K",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Reads CSV records, fast-csv",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Writes CSV files, fast-csv",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Streams CSV input, fast-csv",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Output formats, fast-csv",
      "display": "CSV",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Install, fast-csv",
      "display": "npm install fast-csv",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "What it does, fast-csv",
      "display": "Parses and formats delimited records through Node.js streams.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, fast-csv",
      "display": "Streams CSV input and output",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, fast-csv",
      "display": "Parse incoming records and format outgoing rows through Node.js streams.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, fast-csv",
      "display": "Controls header names and mapping",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, fast-csv",
      "display": "Use detected headers, explicit names, or a header-transform function.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, fast-csv",
      "display": "Duplicate headers stop parsing",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, fast-csv",
      "display": "Rename repeated column names before parsing records as objects.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, fast-csv",
      "display": "Delimiters must be single characters",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, fast-csv",
      "display": "Choose another parser for separators containing multiple characters.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Quickstart, fast-csv",
      "display": "const csv = require('fast-csv');\n\nconst csvStream = csv.format({ headers: true });\n\ncsvStream.pipe(process.stdout).on('end', () => process.exit());\n\ncsvStream.write({ header1: 'row1-col1', header2: 'row1-col2' });\ncsvStream.write({ header1: 'row2-col1', header2: 'row2-col2' });\ncsvStream.write({ header1: 'row3-col1', header2: 'row3-col2' });\ncsvStream.write({ header1: 'row4-col1', header2: 'row4-col2' });\ncsvStream.end();\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function, fast-csv",
      "display": "export async function generateReceiptCsv(\n    receipt: FormattedReceipt,\n    signature: string,\n    usdValue?: string,\n): Promise<void> {\n    const rows = buildReceiptCsvRows(receipt, signature, usdValue);\n    const csv = await writeToString(rows, { headers: [...CSV_HEADERS] });\n\n    const blob = new Blob([csv], { type: 'text/csv;charset=utf-8;' });\n    const url = URL.createObjectURL(blob);\n    try {\n        const link = document.createElement('a');\n        link.href = url;\n        link.download = `solana-receipt-${signature}.csv`;\n        document.body.appendChild(link);\n        try {\n            link.click();\n        } finally {\n            document.body.removeChild(link);\n        }\n    } finally {\n        URL.revokeObjectURL(url);\n    }\n}\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function reference, fast-csv",
      "display": "generate-receipt-csv.ts · generateReceiptCsv()",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project repository, fast-csv",
      "display": "solana-foundation/explorer",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project stars, solana-foundation/explorer",
      "display": "858",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project push date, solana-foundation/explorer",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F52": {
      "label": "Library name, csv-parse",
      "display": "csv-parse",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Monthly downloads, csv-parse",
      "display": "106.2M",
      "asOf": "2026-11-15"
    },
    "F54": {
      "label": "License, csv-parse",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Package release, csv-parse",
      "display": "7.0.3",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Undated package release, csv-parse",
      "display": "v7.0.3",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Repository stars, csv-parse",
      "display": "4.3K",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Reads CSV records, csv-parse",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Streams CSV input, csv-parse",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Install, csv-parse",
      "display": "npm install csv-parse",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "What it does, csv-parse",
      "display": "Parses CSV into records through streaming, callback, and synchronous APIs.",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths lead, csv-parse",
      "display": "Offers streaming and synchronous APIs",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths, csv-parse",
      "display": "Choose streamed records or a direct call returning the complete result.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths lead, csv-parse",
      "display": "Maps columns to object fields",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths, csv-parse",
      "display": "Read named records using header-derived or explicitly configured columns.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "limitations lead, csv-parse",
      "display": "Sync parsing retains every record",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations, csv-parse",
      "display": "Use streaming when the complete input and result exceed available memory.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "Quickstart, csv-parse",
      "display": "import assert from \"node:assert\";\nimport { parse } from \"csv-parse/sync\";\n\nconst input = `\n\"key_1\",\"key_2\"\n\"value 1\",\"value 2\"\n`;\nconst records = parse(input, {\n  columns: true,\n  skip_empty_lines: true,\n});\nassert.deepStrictEqual(records, [{ key_1: \"value 1\", key_2: \"value 2\" }]);\n",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Project function, csv-parse",
      "display": "export async function parseCsvBuffer(\n  input: Buffer | Uint8Array | string,\n  delimiter = ','\n): Promise<{\n  headers: string[]\n  rows: Record<string, unknown>[]\n  rejections: CsvRejectionSummary\n}> {\n  const { parse } = await import('csv-parse/sync')\n\n  const text = decodeCsvText(input)\n\n  let headers: string[] = []\n  const rejections = createCsvRejectionCollector()\n  const options = csvParseOptions(\n    delimiter,\n    (h) => {\n      headers = h\n    },\n    rejections.onSkip\n  )\n  // double-cast-allowed: shared csvParseOptions() loses the `columns` literal that drives\n  // csv-parse's record-vs-string[][] overload, but `columns` is always set so records are objects\n  const parsed = parse(text, options) as unknown as Record<string, unknown>[]\n\n  if (parsed.length === 0) {\n    throw new OrchestrationError('validation', 'CSV file has no data rows')\n  }\n\n  if (headers.length === 0) {\n    throw new OrchestrationError('validation', 'CSV file has no headers')\n  }\n\n  return { headers, rows: parsed, rejections: rejections.summary }\n}\n",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Project function reference, csv-parse",
      "display": "import.ts · parseCsvBuffer()",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Project repository, csv-parse",
      "display": "simstudioai/sim",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project stars, simstudioai/sim",
      "display": "30.1K",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project push date, simstudioai/sim",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F74": {
      "label": "Library name, papaparse",
      "display": "Papa Parse",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Monthly downloads, papaparse",
      "display": "93.7M",
      "asOf": "2026-11-15"
    },
    "F76": {
      "label": "License, papaparse",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Package release, papaparse",
      "display": "5.7.1",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Undated package release, papaparse",
      "display": "v5.7.1",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Repository stars, papaparse",
      "display": "13.6K",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Reads CSV records, papaparse",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Writes CSV files, papaparse",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Streams CSV input, papaparse",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Output formats, papaparse",
      "display": "CSV",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Install, papaparse",
      "display": "npm install papaparse",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "What it does, papaparse",
      "display": "Parses delimited text in browsers and Node.js and serializes records back to CSV.",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "strengths lead, papaparse",
      "display": "Detects common delimiters automatically",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "strengths, papaparse",
      "display": "Leave delimiter blank to infer a separator from the configured candidates.",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "strengths lead, papaparse",
      "display": "Runs parsing in browser workers",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths, papaparse",
      "display": "Use worker mode to keep the page responsive during parsing.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "limitations lead, papaparse",
      "display": "Streaming changes completion results",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "limitations, papaparse",
      "display": "Read streamed rows in step or chunk callbacks, rather than complete.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "limitations lead, papaparse",
      "display": "European numbers need normalization",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations, papaparse",
      "display": "Swap decimal commas and grouping dots before enabling dynamicTyping.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Quickstart, papaparse",
      "display": "// With implicit header row\n// (keys of first object populate header row)\nvar csv = Papa.unparse([\n\t{\n\t\t\"Column 1\": \"foo\",\n\t\t\"Column 2\": \"bar\"\n\t},\n\t{\n\t\t\"Column 1\": \"abc\",\n\t\t\"Column 2\": \"def\"\n\t}\n]);\n",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Project function, papaparse",
      "display": "export default function serialize(\n  rows: Array<Record<string, unknown>>,\n  { columns, header = true }: SerializeOptions = {},\n): string {\n  return papaparse.unparse(rows, { columns, header, escapeFormulae: true });\n}\n",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Project function reference, papaparse",
      "display": "serialize.ts · serialize()",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Project repository, papaparse",
      "display": "TryGhost/Ghost",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Project stars, TryGhost/Ghost",
      "display": "55.8K",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Project push date, TryGhost/Ghost",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F100": {
      "label": "Developer need",
      "display": "Browser imports with delimiter detection",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Why choose papaparse",
      "display": "inferring delimiters for browser-uploaded files",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need in introduction",
      "display": "browser imports with delimiter detection",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need",
      "display": "Node.js record parsing",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Why choose csv-parse",
      "display": "choosing streaming, callback, or synchronous parsing APIs",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need in introduction",
      "display": "node.js record parsing",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "When to consider papaparse",
      "display": "uploaded files need automatic delimiter detection",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need",
      "display": "Streaming CSV imports and exports",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Why choose fast-csv",
      "display": "processing input and output through Node.js streams",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need in introduction",
      "display": "streaming CSV imports and exports",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "When to consider papaparse",
      "display": "browser worker parsing is required",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need",
      "display": "Delimited data transformations",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Why choose d3-dsv",
      "display": "parsing and formatting CSV or TSV records",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Developer need in introduction",
      "display": "delimited data transformations",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "When to consider csv-parse",
      "display": "incremental Node.js input parsing is required",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "Page introduction",
      "display": "JavaScript CSV libraries let developers read or write tabular CSV data.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Which JavaScript CSV library should I choose?",
      "display": "Papa Parse can infer common delimiters.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Which JavaScript CSV library should I choose?",
      "display": "csv-parse exposes streaming, callback, and sync APIs.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Which JavaScript CSV library should I choose?",
      "display": "Fast-CSV supports parsing and formatting with streams.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Which JavaScript CSV library should I choose?",
      "display": "d3-dsv provides CSV and TSV parsers and formatters.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Which library automatically detects the CSV delimiter?",
      "display": "Leave Papa Parse delimiter blank to try common delimiters or configured guesses.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Should large CSV files use synchronous parsing?",
      "display": "csv-parse sync expects the complete input and returns the complete result.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Should large CSV files use synchronous parsing?",
      "display": "Its own API guidance recommends streaming for scalability.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: What happens to duplicate CSV headers?",
      "display": "Papa Parse renames duplicate field names and records their original names.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: What happens to duplicate CSV headers?",
      "display": "Fast-CSV emits an error and stops when headers are not unique.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: What happens to duplicate CSV headers?",
      "display": "d3-dsv object parsing retains only the last value for a repeated name.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Can CSV separators contain more than one character?",
      "display": "Papa Parse supports multi-character delimiters.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Can CSV separators contain more than one character?",
      "display": "Fast-CSV accepts only a single-character alternate delimiter.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Can CSV separators contain more than one character?",
      "display": "d3-dsv delimiters must be one 16-bit code unit.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Does parsing CSV automatically convert every value to a number or date?",
      "display": "d3-dsv leaves fields as strings unless a row conversion function is supplied.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Does parsing CSV automatically convert every value to a number or date?",
      "display": "Papa Parse dynamicTyping converts numeric and boolean data when enabled.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: Does Papa Parse dynamicTyping accept European-formatted numbers directly?",
      "display": "European-formatted numbers require commas and dots to be swapped.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Can object-row parsing run under a strict content security policy?",
      "display": "parseRows works where a policy blocks the unsafe-eval that object parsing needs.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: Does the Papa Parse complete callback contain streamed rows?",
      "display": "Parsed results are unavailable in complete during streaming.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "FAQ: Can Fast-CSV rename or transform headers?",
      "display": "A header-transform function can change column names.",
      "asOf": "2026-11-17"
    },
    "F135": {
      "label": "FAQ: Can Fast-CSV rename or transform headers?",
      "display": "Replacing and discarding the first row uses renameHeaders.",
      "asOf": "2026-11-17"
    },
    "F136": {
      "label": "FAQ: Does quoting CSV fields prevent spreadsheet formula execution?",
      "display": "Papa Parse escapeFormulae prefixes dangerous leading characters for Excel and LibreOffice.",
      "asOf": "2026-11-17"
    },
    "F137": {
      "label": "FAQ: Is Fast-CSV separate from @fast-csv/parse and @fast-csv/format?",
      "display": "The fast-csv umbrella exposes the methods and options of both packages.",
      "asOf": "2026-11-17"
    },
    "F138": {
      "label": "Library name, d3-dsv",
      "display": "d3-dsv",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Monthly downloads, d3-dsv",
      "display": "132.6M",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "License, d3-dsv",
      "display": "ISC",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Package release, d3-dsv",
      "display": "3.0.2",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Package release date, d3-dsv",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Install, d3-dsv",
      "display": "npm install d3-dsv",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Quickstart, d3-dsv",
      "display": "import { csvParse } from 'd3-dsv';\n\nconst rows = csvParse('name,score\\nAda,42');\nconsole.log(rows);\n",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Repository stars, d3-dsv",
      "display": "446",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Parse CSV, d3-dsv",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Write CSV, d3-dsv",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Incremental CSV input, d3-dsv",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "CSV workflow and memory model, d3-dsv",
      "display": "Whole-string CSV/TSV conversion, row callbacks, and custom delimiters alongside D3 data processing; file loading is the separate d3-fetch package.",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Verified original function context, d3-dsv",
      "display": "The immutable geojson.io function directly imports dsvFormat from d3-dsv. Current3.0.2 official API documents dsvFormat(delimiter).parse(string), row objects, and the array columns property. Both the factory and returned parser are native SDK calls. Local geometry casting, Zod options validation, progress callback, and GeoJSON construction are host context, not additional d3-dsv calls. Input is held in memory; parsing all CSV rows precedes conversion.",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Project function, d3-dsv",
      "display": "export function csvToGeoJSON(\n  csv: string,\n  options: ImportOptions['csvOptions'],\n  progress: ProgressCb\n): Promise<FeatureCollection> {\n  if (!options) throw new Error('Options should not be undefined');\n  const { kind, delimiter } = options;\n\n  let i = 0;\n  const rows = dsvFormat(delimiter).parse(csv);\n  const features: Feature[] = [];\n\n  // Preflight checks\n  switch (kind) {\n    case 'geojson':\n    case 'wkt':\n    case 'polyline':\n    case 'lonlat': {\n      break;\n    }\n  }\n\n  progress({ total: rows.length, done: 0 });\n\n  for (const row of rows) {\n    const castRow: JsonObject = options.autoType\n      ? autoType(row, options)\n      : (row as JsonObject);\n    switch (kind) {\n      case 'lonlat': {\n        const feature = castRowLonLat(\n          castRow,\n          EnforcedLonLatOptions.parse(options)\n        );\n        if (feature) {\n          features.push(feature);\n        }\n        break;\n      }\n      case 'wkt': {\n        const feature = castRowWKT(castRow, EnforcedWKTOptions.parse(options));\n        if (feature) {\n          features.push(feature);\n        }\n        break;\n      }\n      case 'geojson': {\n        const feature = castRowGeoJSON(\n          castRow,\n          EnforcedWKTOptions.parse(options)\n        );\n        if (feature) {\n          features.push(feature);\n        }\n        break;\n      }\n      case 'polyline': {\n        const feature = castRowPolyline(\n          castRow,\n          EnforcedWKTOptions.parse(options)\n        );\n        if (feature) {\n          features.push(feature);\n        }\n        break;\n      }\n    }\n    progress({ total: rows.length, done: ++i });\n  }\n\n  return {\n    type: 'FeatureCollection',\n    features: features\n  };\n}",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Project source file, d3-dsv",
      "display": "app/lib/convert/local/csv_to_geojson.ts",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Project full_name, d3-dsv",
      "display": "mapbox/geojson.io",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Project stargazers_count, d3-dsv",
      "display": "2.3K",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Library name, @fast-csv/format",
      "display": "@fast-csv/format",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Monthly downloads, @fast-csv/format",
      "display": "114.3M",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "License, @fast-csv/format",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Package release, @fast-csv/format",
      "display": "5.0.8",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Package release date, @fast-csv/format",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Install, @fast-csv/format",
      "display": "npm install @fast-csv/format",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Quickstart, @fast-csv/format",
      "display": "import { writeToString } from '@fast-csv/format';\n\nconst csv = await writeToString([{ name: 'Ada', score: 42 }], { headers: true });\nconsole.log(csv);\n",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Official description, @fast-csv/format",
      "display": "fast-csv formatting module",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Quickstart source file, @fast-csv/format",
      "display": "methods",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Repository stars, @fast-csv/format",
      "display": "1.8K",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Parse CSV, @fast-csv/format",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Write CSV, @fast-csv/format",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Incremental CSV input, @fast-csv/format",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "CSV workflow and memory model, @fast-csv/format",
      "display": "Node row streams and CSV export with formatter options; parsing is the separate @fast-csv/parse distribution.",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Verified original function context, @fast-csv/format",
      "display": "The original Solana Explorer file directly imports writeToString from @fast-csv/format, not the fast-csv umbrella. Current5.0.8 documents rows plus formatter headers and Promise<string>. The whole24-line CSV download task uses the bounded one-call exception. buildReceiptCsvRows, Blob, DOM download, and URL cleanup are host operations. The same source sanitizes dangerous spreadsheet-leading characters before formatting; do not claim quoting alone prevents formula injection.",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Project function, @fast-csv/format",
      "display": "export async function generateReceiptCsv(\n    receipt: FormattedReceipt,\n    signature: string,\n    usdValue?: string,\n): Promise<void> {\n    const rows = buildReceiptCsvRows(receipt, signature, usdValue);\n    const csv = await writeToString(rows, { headers: [...CSV_HEADERS] });\n\n    const blob = new Blob([csv], { type: 'text/csv;charset=utf-8;' });\n    const url = URL.createObjectURL(blob);\n    try {\n        const link = document.createElement('a');\n        link.href = url;\n        link.download = `solana-receipt-${signature}.csv`;\n        document.body.appendChild(link);\n        try {\n            link.click();\n        } finally {\n            document.body.removeChild(link);\n        }\n    } finally {\n        URL.revokeObjectURL(url);\n    }\n}",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Project source file, @fast-csv/format",
      "display": "app/features/receipt/lib/generate-receipt-csv.ts",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Project full_name, @fast-csv/format",
      "display": "solana-foundation/explorer",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Project stargazers_count, @fast-csv/format",
      "display": "858",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Library name, @fast-csv/parse",
      "display": "@fast-csv/parse",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Monthly downloads, @fast-csv/parse",
      "display": "114.0M",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "License, @fast-csv/parse",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Package release, @fast-csv/parse",
      "display": "5.0.8",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Package release date, @fast-csv/parse",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Install, @fast-csv/parse",
      "display": "npm install @fast-csv/parse",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Quickstart, @fast-csv/parse",
      "display": "import { parseString } from '@fast-csv/parse';\n\nparseString('name,score\\nAda,42', { headers: true })\n  .on('error', console.error)\n  .on('data', console.log);\n",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Official description, @fast-csv/parse",
      "display": "fast-csv parsing package",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Quickstart source file, @fast-csv/parse",
      "display": "methods",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Repository stars, @fast-csv/parse",
      "display": "1.8K",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Parse CSV, @fast-csv/parse",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Write CSV, @fast-csv/parse",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Incremental CSV input, @fast-csv/parse",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "CSV workflow and memory model, @fast-csv/parse",
      "display": "Node stream-based imports with header handling, row transformation, and validation; output formatting is the separate @fast-csv/format distribution.",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Verified original function context, @fast-csv/parse",
      "display": "The original maintainer benchmark requires fast-csv, whose selected5.0.8 published entry point reexports @fast-csv/parse. parse({headers:true}) returns CsvParserStream, whose own current5.0.8 class declares transform(rowFunction). These are two native operations. fs.createReadStream, pipe, EventEmitter listeners, camelize, and the benchmark completion helper are not inflated into SDK calls. This is an authored parsing/transformation benchmark workload, not independent adoption evidence or a measured speed claim; no timing was run.",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Project function, @fast-csv/parse",
      "display": "async function parseAsCSV(\n  text: string,\n  parseOptions: ParserOptionsArgs,\n): Promise<string[][]> {\n  return new Promise((resolve, reject) => {\n    const rows: string[][] = [];\n    parseStringAsCsv(text, parseOptions)\n      .on('data', (row: string[]) => {\n        rows.push(row);\n      })\n      .on('error', (error) =>\n        reject(\n          new Error(\n            `Unexpected error while parsing CSV: ${error.name}: ${error.message}`,\n          ),\n        ),\n      )\n      .on(\n        'data-invalid',\n        (row: Row | null, rowCount: number, reason?: string) =>\n          reject(\n            new Error(\n              `Invalid row ${rowCount}: ${\n                reason ?? 'Unknwon reason'\n              }: ${JSON.stringify(row ?? '')}`,\n            ),\n          ),\n      )\n      .on('end', () => {\n        resolve(rows);\n      });\n  });\n}\n",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Project source file, @fast-csv/parse",
      "display": "libs/extensions/tabular/exec/src/lib/csv-interpreter-executor.ts",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Project full_name, @fast-csv/parse",
      "display": "jvalue/jayvee",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Project stargazers_count, @fast-csv/parse",
      "display": "178",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Library name, csv-parse",
      "display": "csv-parse",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Monthly downloads, csv-parse",
      "display": "109.4M",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "License, csv-parse",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Package release, csv-parse",
      "display": "7.0.3",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Package release date, csv-parse",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Install, csv-parse",
      "display": "npm install csv-parse",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Quickstart, csv-parse",
      "display": "import assert from \"node:assert\";\nimport { parse } from \"csv-parse/sync\";\n\nconst input = `\n\"key_1\",\"key_2\"\n\"value 1\",\"value 2\"\n`;\nconst records = parse(input, {\n  columns: true,\n  skip_empty_lines: true,\n});\nassert.deepStrictEqual(records, [{ key_1: \"value 1\", key_2: \"value 2\" }]);\n",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Repository stars, csv-parse",
      "display": "4.3K",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Parse CSV, csv-parse",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Write CSV, csv-parse",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Incremental CSV input, csv-parse",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "CSV workflow and memory model, csv-parse",
      "display": "Node imports needing synchronous, callback, or stream APIs and detailed malformed-record controls; writing uses csv-stringify.",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Verified original function context, csv-parse",
      "display": "The original Sim function dynamically imports parse from csv-parse/sync; current7.0.3 still exports parse(input, options) with object rows under columns. The same immutable file defines csvParseOptions using columns, skip_empty_lines, trim, relax_column_count, relax_quotes, skip_records_with_error, and on_skip; the current options reference supports them. Header callbacks, rejection collector, decoding, and OrchestrationError are host context. Preserved upstream comment accurately describes skip counts as a lower bound, not exact lost-record counts. One native parse call in a complete35-line import task.",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Project function, csv-parse",
      "display": "export async function parseCsvBuffer(\n  input: Buffer | Uint8Array | string,\n  delimiter = ','\n): Promise<{\n  headers: string[]\n  rows: Record<string, unknown>[]\n  rejections: CsvRejectionSummary\n}> {\n  const { parse } = await import('csv-parse/sync')\n\n  const text = decodeCsvText(input)\n\n  let headers: string[] = []\n  const rejections = createCsvRejectionCollector()\n  const options = csvParseOptions(\n    delimiter,\n    (h) => {\n      headers = h\n    },\n    rejections.onSkip\n  )\n  // double-cast-allowed: shared csvParseOptions() loses the `columns` literal that drives\n  // csv-parse's record-vs-string[][] overload, but `columns` is always set so records are objects\n  const parsed = parse(text, options) as unknown as Record<string, unknown>[]\n\n  if (parsed.length === 0) {\n    throw new OrchestrationError('validation', 'CSV file has no data rows')\n  }\n\n  if (headers.length === 0) {\n    throw new OrchestrationError('validation', 'CSV file has no headers')\n  }\n\n  return { headers, rows: parsed, rejections: rejections.summary }\n}",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Project source file, csv-parse",
      "display": "apps/sim/lib/table/import.ts",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Project full_name, csv-parse",
      "display": "simstudioai/sim",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Project stargazers_count, csv-parse",
      "display": "30.1K",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Library name, exceljs",
      "display": "ExcelJS",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Monthly downloads, exceljs",
      "display": "105.0M",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "License, exceljs",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Package release, exceljs",
      "display": "4.4.0",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Package release date, exceljs",
      "display": "Oct 2023",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Install, exceljs",
      "display": "npm install exceljs",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Quickstart, exceljs",
      "display": "const ExcelJS = require('exceljs');\n\nconst workbook = new ExcelJS.Workbook();\nworkbook.csv.readFile('input.csv').then(worksheet => {\n  console.log(worksheet.rowCount);\n});\n",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Official description, exceljs",
      "display": "Reads and writes Excel workbooks and CSV files.",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Quickstart source file, exceljs",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Repository stars, exceljs",
      "display": "15.5K",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Parse CSV, exceljs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Write CSV, exceljs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Incremental CSV input, exceljs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "CSV workflow and memory model, exceljs",
      "display": "Applications already using a workbook/worksheet model that also need CSV import/export. CSV stream interfaces still construct or consume worksheet rows; they are not a constant-memory XLSX streaming-writer claim.",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Project function, exceljs",
      "display": "const exportCSV = async (workbook: Workbook, fileName: string, isView?: boolean) => {\n  await workbook.csv.writeBuffer({ encoding: 'UTF-8' }).then((buffer) => {\n    const blob = new Blob(['\\uFEFF' + buffer], { type: 'text/csv;charset=utf-8;' });\n    const link = document.createElement('a');\n    link.href = window.URL.createObjectURL(blob);\n    link.download = `${fileName}.csv`;\n    link.click();\n    Message.success({\n      content: isView ? t(Strings.import_view_data_succeed) : t(Strings.import_file_data_succeed),\n    });\n  });\n};\n",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Project source file, exceljs",
      "display": "packages/datasheet/src/pc/utils/catalog.ts",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Project full_name, exceljs",
      "display": "apitable/apitable",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Project stargazers_count, exceljs",
      "display": "15.7K",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Library name, papaparse",
      "display": "Papa Parse",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Monthly downloads, papaparse",
      "display": "96.6M",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "License, papaparse",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Package release, papaparse",
      "display": "5.7.1",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Package release date, papaparse",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Install, papaparse",
      "display": "npm install papaparse",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Quickstart, papaparse",
      "display": "import Papa from 'papaparse';\n\nconst result = Papa.parse('name,score\\nAda,42', { header: true });\nconsole.log(result.data);\n",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Repository stars, papaparse",
      "display": "13.6K",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Parse CSV, papaparse",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Write CSV, papaparse",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Incremental CSV input, papaparse",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "CSV workflow and memory model, papaparse",
      "display": "Browser CSV parsing with File, remote download, worker, and chunk/step options, plus string CSV output and a Node stream adapter.",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Verified original function context, papaparse",
      "display": "The original Ghost function directly imports papaparse and calls unparse(rows, {columns, header, escapeFormulae:true}). Current5.7.1 supports arrays of row objects, explicit columns, optional header, and escapeFormulae. The complete six-line serializer is the bounded one-call task exception. Escaping is explicitly enabled rather than presumed from generic CSV quoting; the displayed function relies on the host TypeScript SerializeOptions type, not an invented standalone module.",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Project function, papaparse",
      "display": "export default function serialize(\n  rows: Array<Record<string, unknown>>,\n  { columns, header = true }: SerializeOptions = {},\n): string {\n  return papaparse.unparse(rows, { columns, header, escapeFormulae: true });\n}",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Project source file, papaparse",
      "display": "ghost/core/server/services/members/import-export/csv/serialize.ts",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Project full_name, papaparse",
      "display": "TryGhost/Ghost",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Project stargazers_count, papaparse",
      "display": "55.8K",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Library name, xlsx",
      "display": "xlsx",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Monthly downloads, xlsx",
      "display": "60.5M",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "License, xlsx",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Package release, xlsx",
      "display": "0.20.3",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Package release date, xlsx",
      "display": "Jul 2024",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Install, xlsx",
      "display": "npm i --save https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Quickstart, xlsx",
      "display": "import * as XLSX from 'xlsx';\n\nconst workbook = XLSX.read('name,score\\nAda,42', { type: 'string' });\nconsole.log(workbook.SheetNames);\n",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Official description, xlsx",
      "display": "Parses and writes spreadsheet data.",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Quickstart source file, xlsx",
      "display": "api",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Repository stars, xlsx",
      "display": "36.3K",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Parse CSV, xlsx",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Write CSV, xlsx",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Incremental CSV input, xlsx",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "CSV workflow and memory model, xlsx",
      "display": "Applications converting CSV alongside spreadsheet formats through a common workbook model. Current CE is publisher0.20.3; npm latest0.18.5 is stale and its download count does not measure current-CDN installs.",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Library name, csv-stringify",
      "display": "csv-stringify",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Monthly downloads, csv-stringify",
      "display": "50.3M",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "License, csv-stringify",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Package release, csv-stringify",
      "display": "6.9.0",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Package release date, csv-stringify",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Install, csv-stringify",
      "display": "npm install csv-stringify",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Quickstart, csv-stringify",
      "display": "import { stringify } from \"csv-stringify/sync\";\nimport assert from \"node:assert\";\n\nconst output = stringify([\n  [\"1\", \"2\", \"3\", \"4\"],\n  [\"a\", \"b\", \"c\", \"d\"],\n]);\n\nassert.equal(output, \"1,2,3,4\\na,b,c,d\\n\");\n",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Official description, csv-stringify",
      "display": "CSV stringifier implementing the Node.js `stream.Transform` API",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Quickstart source file, csv-stringify",
      "display": "packages/csv-stringify/samples/api.sync.js",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Repository stars, csv-stringify",
      "display": "4.3K",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Parse CSV, csv-stringify",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "Write CSV, csv-stringify",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "Incremental CSV input, csv-stringify",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "CSV workflow and memory model, csv-stringify",
      "display": "Node CSV output with callback, sync, or stream APIs, explicit columns, value casting, and formula escaping; it does not parse CSV.",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "Verified original function context, csv-stringify",
      "display": "Grist directly imports stringify from the csv umbrella; current6.6.4 publishes the exact csv-stringify reexport, with compatible6.x dependency. The original stringifyAsync is util.promisify(stringify), not an application forwarding wrapper or a second SDK call. Current6.9.0 documents stringify(input, options, callback) and delimiter. The unchanged13-line convertToDsv formats the host view values and returns a promise of CSV text. Grist formatters and header helpers stay surrounding context; the scalar Unicode delimiter is subject to the current delimiter option, not a guarantee all spreadsheet applications accept every delimiter.",
      "asOf": "2026-11-20"
    },
    "F274": {
      "label": "Project function, csv-stringify",
      "display": "function convertToDsv(data: ExportData, options: ConvertToDsvOptions) {\n  const { rowIds, access, columns: viewColumns } = data;\n  const { delimiter, header } = options;\n  // create formatters for columns\n  const formatters = viewColumns.map(col => col.formatter);\n  // Arrange the data into a row-indexed matrix, starting with column headers.\n  const csvMatrix = [viewColumns.map(col => getExportHeader(col, header))];\n  // populate all the rows with values as strings\n  rowIds.forEach((row) => {\n    csvMatrix.push(access.map((getter, c) => formatters[c].formatAny(getter(row))));\n  });\n  return stringifyAsync(csvMatrix, { delimiter });\n}",
      "asOf": "2026-11-20"
    },
    "F275": {
      "label": "Project source file, csv-stringify",
      "display": "app/server/lib/ExportDSV.ts",
      "asOf": "2026-11-20"
    },
    "F276": {
      "label": "Project full_name, csv-stringify",
      "display": "gristlabs/grist-core",
      "asOf": "2026-11-20"
    },
    "F277": {
      "label": "Project stargazers_count, csv-stringify",
      "display": "12.1K",
      "asOf": "2026-11-20"
    },
    "F278": {
      "label": "What, fast-csv format",
      "display": "Formats rows into CSV or other delimited text in Node.js.",
      "asOf": "2026-11-17"
    },
    "F279": {
      "label": "Watch out lead, fast-csv format",
      "display": "Single-character delimiters only",
      "asOf": "2026-11-17"
    },
    "F280": {
      "label": "Watch out body, fast-csv format",
      "display": "Pick a one-character field delimiter such as a semicolon or a tab.",
      "asOf": "2026-11-17"
    },
    "F281": {
      "label": "Watch out lead, fast-csv format quoting",
      "display": "Disabled quoting can add columns",
      "asOf": "2026-11-17"
    },
    "F282": {
      "label": "Watch out body, fast-csv format quoting",
      "display": "Keep quoting on when a field can contain the delimiter.",
      "asOf": "2026-11-17"
    },
    "F283": {
      "label": "What, fast-csv parse",
      "display": "Parses CSV or other delimited files in Node.js.",
      "asOf": "2026-11-17"
    },
    "F284": {
      "label": "Strength lead, fast-csv parse",
      "display": "Streams large files",
      "asOf": "2026-11-17"
    },
    "F285": {
      "label": "Strength body, fast-csv parse",
      "display": "Parsing streams rows without holding a large file in memory.",
      "asOf": "2026-11-17"
    },
    "F286": {
      "label": "Strength lead, fast-csv parse headers",
      "display": "Reads headers from the first row",
      "asOf": "2026-11-17"
    },
    "F287": {
      "label": "Strength body, fast-csv parse headers",
      "display": "Setting headers to true keys each row by the names in the first row.",
      "asOf": "2026-11-17"
    },
    "F288": {
      "label": "Watch out lead, fast-csv parse",
      "display": "Single-character delimiters only",
      "asOf": "2026-11-17"
    },
    "F289": {
      "label": "Watch out body, fast-csv parse",
      "display": "Pick a one-character delimiter such as a semicolon or a tab.",
      "asOf": "2026-11-17"
    },
    "F290": {
      "label": "What, csv-stringify",
      "display": "Converts records into CSV text through the Node.js stream API, with synchronous and callback options.",
      "asOf": "2026-11-17"
    },
    "F291": {
      "label": "Strength lead, csv-stringify",
      "display": "Custom formatters and headers",
      "asOf": "2026-11-17"
    },
    "F292": {
      "label": "Strength body, csv-stringify",
      "display": "Options set formatters, delimiters, quotes, escape characters, and the header row.",
      "asOf": "2026-11-17"
    },
    "F293": {
      "label": "Strength lead, csv-stringify deps",
      "display": "No external dependencies",
      "asOf": "2026-11-17"
    },
    "F294": {
      "label": "Strength body, csv-stringify deps",
      "display": "The package installs with no external dependency.",
      "asOf": "2026-11-17"
    },
    "F295": {
      "label": "Watch out lead, csv-stringify",
      "display": "Writes only",
      "asOf": "2026-11-17"
    },
    "F296": {
      "label": "Watch out body, csv-stringify",
      "display": "Parse CSV with its companion package csv-parse.",
      "asOf": "2026-11-17"
    },
    "F297": {
      "label": "Watch out lead, SheetJS",
      "display": "readFile skips browsers",
      "asOf": "2026-11-17"
    },
    "F298": {
      "label": "Watch out body, SheetJS",
      "display": "In the browser, pass file data to read instead of a filename.",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript CSV libraries Papa Parse csv-parse Fast-CSV d3-dsv examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
