Skip to content

double2dev/bolt-pattern-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bolt Pattern Calculator (PCD Utility)

License: MIT

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.

Features

  • 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

Installation

Clone the repository and install dependencies locally:

git clone https://github.com/double2dev/bolt-pattern-calculator.git
cd bolt-pattern-calculator
npm install

Usage

const { 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 }

Data Provider & Live Demo

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

BoltPatternHQ provides the complete dataset that powers tools like this.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

A lightweight Node.js utility for validating, parsing, and formatting automotive wheel bolt patterns (PCD). Built for developers and fitment enthusiasts.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages