npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

kenteken-kit

v0.2.6

Published

Tiny Dutch kenteken formatter, parser, and validator toolkit.

Readme

kenteken-kit

formatKentekenPartial formats live input as a Dutch plate while the user types.

Tiny Dutch kenteken formatting, parsing, and validation for JavaScript and TypeScript.

This package is intentionally small:

  • no runtime dependencies
  • pure functions, no class instance state
  • modern ESM build
  • TypeScript declarations
  • partial formatting for live inputs and OCR cleanup
  • parse results with issue codes instead of only true or false

Install

npm install kenteken-kit

Usage

import {
  formatKenteken,
  formatKentekenPartial,
  isKenteken,
  normalizeKenteken,
  parseKenteken,
} from "kenteken-kit";

normalizeKenteken(" kjr-50.s "); // "KJR50S"
formatKenteken("kjr50s"); // "KJR-50-S"
formatKentekenPartial("kjr5"); // "KJR-5"
isKenteken("G-001-BB"); // true

parseKenteken("G-001-BB");
// {
//   input: "G-001-BB",
//   normalized: "G001BB",
//   formatted: "G-001-BB",
//   series: 10,
//   seriesPattern: "X-999-XX",
//   isValid: true,
//   issues: []
// }

API

normalizeKenteken(raw)

Uppercases raw and removes every character except ASCII letters and digits.

formatKenteken(raw)

Returns a normalized kenteken with RDW-style dash groups when the value matches one of the supported series. Unknown 6-character shapes are returned normalized.

formatKentekenPartial(raw)

Formats up to six normalized characters for live input fields. When a partial value has a single matching series prefix, it uses that series' grouping. Otherwise it falls back to simple letter/digit runs.

parseKenteken(raw)

Returns normalized text, formatted text, series metadata, and validation issues.

Issue codes:

  • too_short
  • too_long
  • unknown_series
  • disallowed_letter
  • forbidden_combination

isKenteken(raw)

Convenience boolean around parseKenteken(raw).isValid.

KENTEKEN_SERIES

Metadata for the supported Dutch kenteken series. Each item includes a series number, display pattern, normalized mask, group lengths, and example.

Rules and scope

The formatter supports 14 common Dutch kenteken series. Validation applies general RDW-style letter and combination rules, but this package is not an issuance check. It does not tell you whether a specific kenteken actually exists, belongs to a specific vehicle category, or was issued on a specific date.

For vehicle data, use RDW open data or the official RDW kentekencheck. This package is not affiliated with RDW.

Useful RDW references:

  • https://www.rdw.nl/de-kentekenplaat/cijfers-en-letters-op-de-kentekenplaat
  • https://www.rdw.nl/de-kentekenplaat/overzicht-van-kentekenseries

License

MIT