niels-bosman / license-plate

πŸ”’ Dutch license plate formatting and validation in JavaScript.

Home Page:https://www.npmjs.com/package/license-plate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

πŸ”’ Dutch license plate formatting and validation in JavaScript.

https://www.npmjs.com/package/license-plate


Languages

Language:TypeScript 99.3%Language:Shell 0.7%