Installing using npm
npm install license-plate
Installing using Yarn
yarn add license-plate
- ✅ Validating a license plate.
- 🚗 Formatting a license plate.
- 🔢 Retrieving sidecode from a license plate.
import LicensePlate from 'license-plate';
const plate = new LicensePlate('xx9999');
plate.valid(); // true
plate.pretty(); // 'XX-99-99'
plate.sidecode(); // 1