We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a80f188 commit 52f734dCopy full SHA for 52f734d
1 file changed
dev/scratch.cljs
@@ -0,0 +1,12 @@
1
+(ns scratch
2
+ {:no-doc true}
3
+ (:require [sci.impl.load] :reload
4
+ [sci.core :as sci] :reload))
5
+
6
+(def ctx (sci/init {}))
7
8
+(sci/add-js-lib! ctx "fs" js/fs)
9
10
+(prn
11
+ (sci/eval-form ctx '(do (require '["fs" :as fs] '[clojure.string :as str])
12
+ (first (str/split-lines (fs/readFileSync "README.md" "utf-8"))))))
0 commit comments