Repository navigation
🚀 Overview
This is the initial release of NVP1 Parser, a Google Apps Script that converts NVP1 text reports into structured Google Sheets. The script automates parsing, formatting, and data management for inventory tracking.
🆕 New Features
✅ NVP1 Report Parsing
- Extracts structured inventory data from raw NVP1 reports.
- Cleans and organizes data into key-value pairs.
✅ Spreadsheet Export
- Creates a Google Spreadsheet with formatted inventory data.
- Applies styling, number formats, and filters for readability.
- Generates pivot tables for better analysis.
✅ Inventory Database Management
- Loads, updates, and saves inventory data as a JSON file.
- Ensures consistency between parsed data and previous records.
✅ Unique Inventory Sheet
- Copies and maintains a separate sheet for scanned inventory.
- Helps track inventory changes over time.
✅ Automated Setup
- Automatically detects the latest NVP1 report in Google Drive.
- Initializes database and spreadsheet properties.
🔧 Bug Fixes & Improvements
- Improved handling of missing or corrupt NVP1 reports.
- Enhanced spreadsheet formatting for better data visualization.
- Optimized pivot table creation and layout adjustments.
📌 How to Use
Run the following function in Google Apps Script to process inventory data:
run();This will:
- Parse the NVP1 report.
- Export the data to a Google Spreadsheet.
- Generate a pivot table for easy analysis.
For detailed usage instructions, refer to the [README.md](https://github.com/williamveith/nvp1-parser/blob/main/README.md).
📂 Files Included
Initialize.js– Sets up the database and retrieves the latest NVP1 file.Classes.js– Defines theInventoryDatabaseclass for data management.Parse NVP1 File.js– Extracts structured inventory data.Export As Spreadsheet.js– Handles spreadsheet creation and formatting.Unique Sheet.js– Creates and maintains a unique inventory sheet.Main.js– Runs the script workflow.