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