Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niels-bosman/license-plate
🔢 Dutch license plate formatting and validation in JavaScript.
https://github.com/niels-bosman/license-plate
license-plate npm typescript
Last synced: about 2 months ago
JSON representation
🔢 Dutch license plate formatting and validation in JavaScript.
- Host: GitHub
- URL: https://github.com/niels-bosman/license-plate
- Owner: niels-bosman
- Created: 2021-07-25T09:32:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-22T10:52:20.000Z (10 months ago)
- Last Synced: 2024-04-04T17:23:19.897Z (9 months ago)
- Topics: license-plate, npm, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/license-plate
- Size: 2.01 MB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dutch license plate formatting and validation in JavaScript.
![npm bundle size](https://img.shields.io/bundlephobia/min/license-plate)
![npm](https://img.shields.io/npm/dt/license-plate)
![GitHub issues](https://img.shields.io/github/issues/niels-bosman/license-plate)
![npm](https://img.shields.io/npm/v/license-plate)
![GitHub Repo stars](https://img.shields.io/github/stars/niels-bosman/license-plate?style=social)## Installation
Installing using npm
```bash
npm install license-plate
```Installing using Yarn
```bash
yarn add license-plate
```## Features
- ✅ Validating a license plate.
- 🚗 Formatting a license plate.
- 🔢 Retrieving sidecode from a license plate.## How to use
```js
import LicensePlate from 'license-plate';const plate = new LicensePlate('xx9999');
plate.valid(); // true
plate.pretty(); // 'XX-99-99'
plate.sidecode(); // 1
```