nberger/libphonenumber-cljs


License: EPL-1.0

Language: JavaScript


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.

Project Statistics

Sourcerank 3
Repository Size 281 KB
Stars 1
Forks 0
Watchers 1
Open issues 0
Dependencies 2
Contributors 1
Tags 1
Created
Last updated
Last pushed

Top Contributors See all

Nicolas Berger

Packages Referencing this Repo

nberger/libphonenumber-cljs
libphonenumber packaged for cljs
Latest release 7.1.0 - Published - 1 stars

Recent Tags See all

7.1.0 October 14, 2015

Something wrong with this page? Make a suggestion

Last synced: 2018-01-16 17:38:47 UTC

Login to resync this repository