https://github.com/sangnandar/csv-splitter
Simple Google Apps Script to split large CSV files into smaller, more manageable chunks, while preserving headers and line breaks.
https://github.com/sangnandar/csv-splitter
google-apps-script google-drive
Last synced: 2 months ago
JSON representation
Simple Google Apps Script to split large CSV files into smaller, more manageable chunks, while preserving headers and line breaks.
- Host: GitHub
- URL: https://github.com/sangnandar/csv-splitter
- Owner: sangnandar
- License: mit
- Created: 2025-01-09T19:17:38.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-15T19:10:09.000Z (2 months ago)
- Last Synced: 2025-02-15T20:23:28.293Z (2 months ago)
- Topics: google-apps-script, google-drive
- Language: JavaScript
- Homepage: https://script.google.com
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CSV Splitter
## Overview
Managing large CSV files can be challenging. This simple Google Apps Script solution helps by splitting large CSV files into smaller, more manageable chunks, while preserving headers and line breaks.This is a standalone Google Apps Script that runs entirely within Google Drive.
## Key Features
- **Preserves Original Formatting**: Retains the new line character used in the original file.
- **Header Row Duplication**: Ensures each chunk includes the header row for independent usability.## How It Works
1. The CSV file is stored in Google Drive.
2. The Apps Script:
- Reads the file.
- Splits it into chunks of N records (customizable).## Usage
1. Open the Google Apps Script editor.
2. Copy and paste the script into the editor.
3. Save and authorize the script as needed.
4. Specify the input CSV file and desired chunk size in the script.
5. Run the script to generate the chunks, which will be saved in your Google Drive.