/clojure

🔢 Validate Swedish personal identity numbers

Primary LanguageClojureMIT LicenseMIT

clojure-personnummer

Clojure CI

Usage

(ns my-app
  (:require [personnummer :as p]))

(let [pnr (p/personnummer "199001010017")]
  (format "The person with personal identity number %s is a %s of age %s"
                       (p/format pnr) (p/gender pnr) (p/age pnr)))

Example

See example folder for a runnable example.

Testing

With lein

% lein test