Quick node.js script to convert a CSV file to HTML
✓ Published0🌍 Public
RRandomEtc
Last edited Feb 11, 2012
Created on Feb 11, 2012
A quick Node.js script converts CSV spreadsheet data into standalone HTML pages by applying a template to each row. It uses the `csv` library to parse an input file with named columns and the `ejs` templating engine, configured with curly braces, to interpolate row values into the output. The script validates file extensions (`.csv`, `.ejs`, `.html`) and writes the rendered templates to a single output file, joining them with platform-appropriate line endings. The example includes a template that displays each item’s title, link, source, and year as formatted HTML.
AI-generated description