kentekenplaat

1.0.6 • Public • Published

Travis-CI David npm

Automatically formats an input to a Dutch licenseplate.

Quick start

Demo

Install

Install with NPM

npm install kentekenplaat --save

Install with Bower

bower install kentekenplaat --save

Or download the latest release.

Usage

Only the class kentekenplaat is mandatory to apply styles and formatting:

<input type="text" class="kentekenplaat">

Include the Kentekenplaat stylesheet in your page:

<link rel="stylesheet" href="css/kentekenplaat.min.css" />

Pure Javascript

Include the kentekenplaat.min.js script in your page, and then:

new Kentekenplaat(document.querySelector('.kentekenplaat'));

In case you want to format multiple inputs:

document.querySelectorAll('.kentekenplaat').forEach(function(element){
  new Kentekenplaat(element);
});

jQuery

Include the kentekenplaat.min.js and kentekenplaat-jquery.min.js scripts in your page, and then:

$('.kentekenplaat').kentekenplaat();

AngularJS

Coming soon!

License

The code and the documentation are released under the MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i kentekenplaat

Weekly Downloads

73

Version

1.0.6

License

MIT

Last publish

Collaborators

  • koenromers
  • rickmeijer