Reputation: 34850
Sometimes I want to try out a library in a REPL. For example when I need to know the date 100 days from now, I do:
lein try clj-time
(require '[clj-time.core :as t])
(t/plus (t/today) (t/days 100))
Or with boot:
boot -d clj-time repl -e "(require '[clj-time.core :as t])"
(t/plus (t/today) (t/days 100))
This is already great, but this still has a few seconds of start up time.
My question: can I get the same functionality using ClojureScript and Node and perhaps have a faster startup time? How can I get the example above with cljs-time?
Upvotes: 0
Views: 81
Reputation: 1915
You can use Planck with the jar you're wanting to try by adding it to Planck's "classpath" (it's not an actual classpath since there's no JVM involved). See the Planck Dependencies documentation.
E.g.:
planck -c ~/.m2/repository/com/andrewmcveigh/cljs-time/0.4.0/cljs-time-0.4.0.jar
Upvotes: 1