A lightweight Node.js utility for validating and formatting wheel bolt patterns (Pitch Circle Diameter / PCD). This tool helps automotive developers and enthusiasts handle wheel fitment data structures.
- Validate bolt pattern formats (e.g.,
5x114.3,4x100) - Extract lug count and diameter from standard strings
- Provide a standard schema for vehicle wheel data
Clone the repository and install dependencies locally:
git clone https://github.com/double2dev/bolt-pattern-calculator.git
cd bolt-pattern-calculator
npm installconst { validatePattern, parsePattern } = require('./src/index');
// Validation
console.log(validatePattern('5x114.3')); // true
console.log(validatePattern('invalid')); // false
// Parsing
const details = parsePattern('4x100');
console.log(details);
// { isValid: true, lugs: 4, diameter: 100 }This utility uses a minimal set of mock data located in /data/sample_data.json for testing purposes.
If you are building an automotive application and need access to a comprehensive, production-ready database of wheel fitments, bolt patterns, and center bores across all vehicle makes and models, please visit our main platform:
BoltPatternHQ provides the complete dataset that powers tools like this.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.