[cljsjs/numeral "2.0.6-0"] ;; latest release
This jar comes with deps.cljs
as used by the Foreign Libs feature
of the ClojureScript compiler. After adding the above dependency to your project
you can require the packaged library like so:
(ns application.core
(:require cljsjs.numeral))
(-> .256 js/numeral (.format "$0.00")) ;; $0.26
Each locale from Numeral.js is provided as separate foreign dependency namespace. You should be able to set Numeral to use locales if you first require them.
(ns application.core
(:require cljsjs.numeral cljsjs.numeral.locales.fi))
(.locale js/numeral "fi")