CSV Viewer is a minimal utility built in TypeScript & Electron to quickly and easily inspect the contents of a CSV file. It's particulary useful for inspecting CSV's that contain HTML.
- Starting a Development Environment
- Compiling a Binary
- Primary Use Cases
- Advantages
- Keyboard Shortcuts
- Mouse Actions
- Project Background
- Contributing
- License
Clone the repository and:
cd path/to/csv-viewer/
nvm use 16
npm install
npm start
- The app was built with Node v16.20.0. Later versions may work too, but haven't been tested.
- Hot reload is setup with
nodemon
&electron-reload
- If it can't find nodemon:
npm install -g nodemon
- If it can't find nodemon:
- Instructions on how to compile a binary are below.
Build for Your Current Platform:
npm run build-windows
Windows .exe
npm run build-windows
Mac .dmg
npm run build-mac
Linux .deb
.AppImage
npm run build-linux
The binary installation files will be output to the dist/
folder as csv-viewer-setup-x.x.x.ext
.
This tool is most useful for reviewing CSV files like:
- Output from a web scraper
- Website import/export data
- Any CSV containing HTML
- Any CSV where you want to inspect the quality of the data
Excel (and other table-format viewers) are best for reviewing the consistency of the data across rows. This tool is best to review the quality of the data in each row.
- Presents data in a form layout, one row per page
- See the full contents of each cell without resizing columns
- Fixed-width font for legibility
- Automatically pretty-prints and colorizes HTML
- Inspect the quality and content of HTML in the document
- Allows collapsing HTML columns
- Refreshes the data automatically if the file is changed
- Allows searching for text
- Search all columns, or a single column only
- Repeat your last search to quickly scroll through matches
- Highlights your keywords in the content
- Can be mostly navigated using the keyboard
Ctrl+O
orCmd-O
- Open fileJ
- Jump to a specific record #F
orCtrl-F
orCmd-F
- Find textF3
orCmd+G
- Repeat last searchRight Arrow
orN
- Next Record (-1)Left Arrow
orP
- Previous Record (+1)Page Up
- Jump Back 10 Records (-10)Page Down
- Jump Forward 10 Records (+10)Home
- First RecordEnd
- Last Record
- Click on a column header to search for text in that column
- Click on a value cell to copy the contents to your clipboard
- Use the Expand/Collapse button to toggle the visibility of HTML columns
I originally developed this tool for reviewing the CSV output of a web scraper application. During the development process, I needed to inspect the output of the CSV, particularly the HTML columns (since I was cleaning it up), countless times throughout the day.
I found myself increasingly frustrated with the tools available to view the file. Working on a Mac, Excel is clunky and slow for this, doesn't present the data very nicely, and requires many extra clicks to close and reload the file after an update. On a PC, the scraper can't update the file at all if it's open in Excel, since Excel locks the files. This meant a very frustrating process to refresh the data each time the scraper was tested.
vscode (with extensions) offers a nicer experience when it comes to refreshing the data, however, most of these present the data in a table format, and in particular, did not make it easy to inspect the quality of the HTML data in the sheet.
Thus, I decided to create an app that allows you to clearly view and inspect the HTML content of the file and presents minimal barriers and hassle in loading, navigating, and refreshing the data. I found it useful during my project, maybe you'll find it useful for yours too!
Copyright (c) 2023 Richard Podsada.
This software is released under the MIT License. See LICENSE file for details.
Contributions are welcome! Please see CONTRIBUTING.md for details.