license-plate
TypeScript icon, indicating that this package has built-in type declarations

2.2.0 • Public • Published

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

Package Sidebar

Install

npm i license-plate

Weekly Downloads

359

Version

2.2.0

License

MIT

Unpacked Size

36.9 kB

Total Files

18

Last publish

Collaborators

  • nehlis