/kennitala-js

Utility library for the unique national identification number used by the Icelandic government

Primary LanguageCoffeeScript

This is an utility library for the Icelandic national identification number scheme.

Build Status

Usage

Kennitala = require('kennitala');
Kennitala.validate('0101012239');
Kennitala.generate(new Date()); //Generates a valid ssid for the given date, useful for testing

Browser

Include the minified library and a Kennitala object should be available.

Development

git pull http://github.com/StefanKjartansson/kennitala-js.git
npm install
make

Testing

make test