Skip to content

nakamura196/csv_viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CSV Viewer

A simple, responsive web-based CSV viewer that supports URL-based CSV loading, built with Tailwind CSS, PapaParse, and DataTables.

Features

  • Load CSV data via a direct URL or through a query parameter (?u=).
  • Display CSV data in a responsive and interactive table with pagination, search, and sorting (powered by DataTables).
  • Modern and clean UI styled with Tailwind CSS.
  • Automatically parses CSV headers and skips empty rows.

Demo

Check out the live demo here.

Getting Started

1. Clone the Repository

git clone https://github.com/nakamura196/csv_viewer.git
cd csv_viewer

2. Open the docs/index.html File

You can open the file directly in your browser:

open docs/index.html

Or use a simple HTTP server to serve the file:

python -m http.server

Then, open http://localhost:8000/docs in your browser.


Usage

Load CSV via Input Field

  1. Paste a CSV file URL in the input field.
  2. Click the "Load CSV" button to load and display the CSV data.

Load CSV via URL Query Parameter

Add ?u=CSV_FILE_URL to the URL to directly load a CSV file.

Example:

http://localhost:8000/docs/?u=https://example.com/sample.csv

Dependencies

All dependencies are loaded via CDN.


Customization

Modify Styles

To customize the table styles, edit the inline <style> section in the docs/index.html file.

Add New Features

Modify the JavaScript section to add additional features such as:

  • Custom CSV validation.
  • Support for different file formats.

Deployment

You can deploy this project easily on GitHub Pages:

  1. Push your code to a GitHub repository.
  2. Enable GitHub Pages in the repository settings.
  3. Select the branch (main or master) and the root directory.
  4. Access your site at https://your-username.github.io/csv_viewer/.

License

This project is licensed under the MIT License.


Author

About

A simple, responsive web-based CSV viewer that supports URL-based CSV loading

Topics

Resources

License

Stars

Watchers

Forks