1.0.6 • Published 5 months ago
csvguard v1.0.6
CSVGuard
A robust CSV validation tool designed specifically for LinkedIn lead data. CSVGuard automatically detects CSV headers and allows you to define validation rules for each field, ensuring your lead data meets your quality standards.
Features
- Automatic header detection for CSV files
Configurable validation rules for common lead data fields:
- Company names
- Locations
- Phone numbers
- Email addresses
- Employee size counts
- Company Webite URLs
- LinkedIn Profile URLs
Generates two output files:
- clean.csv: Contains all valid records
- report.csv: Contains invalid records with detailed error descriptions
Installation
npm install -g csvguard
Quick Start
The fastest way to validate your leads file is using npx:
npx csvguard path/to/your/file.csv
This will start an interactive session where you can:
- Review detected headers
- Run the validation process
- Get your clean.csv and reportcsv files
Validation Rules
CSVGuard supports the following validation types:
company
: Validates company namesemail
: Validates email addressesphone
: Validates phone numbers (international format supported)location
: Validates geographical locationsemployee_size
: Validates employee count numbersurl
: Validates URLsdate
: Validates dates in various formats
Output Files
clean.csv
Contains all records that passed validation, maintaining the original format.
report.csv
Contains records that failed validation, with an additional column for errors describing what went wrong.
License
MIT