Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 879 Bytes

README.md

File metadata and controls

35 lines (27 loc) · 879 Bytes

Dutch license plate formatting and validation in JavaScript.

npm bundle size npm GitHub issues npm GitHub Repo stars

Installation

Installing using npm

npm install license-plate

Installing using Yarn

yarn add license-plate

Features

  • ✅ Validating a license plate.
  • 🚗 Formatting a license plate.
  • 🔢 Retrieving sidecode from a license plate.

How to use

import LicensePlate from 'license-plate';

const plate = new LicensePlate('xx9999');

plate.valid();    // true
plate.pretty();   // 'XX-99-99'
plate.sidecode(); // 1