Skip to content

niels-bosman/license-plate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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