Liking cljdoc? Tell your friends :D

libphonenumber-cljs

Google's libphonenumber packaged for use from clojurescript.

Usage

Add dependency: [nberger/libphonenumber-cljs "7.1.0-SNAPSHOT"]

Use it:


(ns foo.core
  (:import [i18n.phonenumbers PhoneNumberUtil]))

(def phone-util (.getInstance PhoneNumberUtil))

(defn valid-phone? [phone]
  (->> (.parse phone-util phone "US")
       (.isPossibleNumber phone-util)))

License

Copyright © 2015 Nicolás Berger

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close