Sha256: 6d90a94897fdf930a0c48a6bb67199f5db7491f0ede9610cbfa71ca505d67dc7
Contents?: true
Size: 425 Bytes
Versions: 2
Compression:
Stored size: 425 Bytes
Contents
; This one doesn't yet work with :optimizations :advanced (ns nodels (:require [cljs.nodejs :as nodejs])) (def fs (nodejs/require "fs")) (def path (nodejs/require "path")) (defn file-seq [dir] (tree-seq (fn [f] (.isDirectory (.statSync fs f) ())) (fn [d] (map #(.join path d %) (.readdirSync fs d))) dir)) (defn -main [& paths] (dorun (map println (mapcat file-seq paths)))) (set! *main-cli-fn* -main)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clementine-0.0.3 | ext/clojure-clojurescript-bef56a7/samples/nodels.cljs |
clementine-0.0.2 | ext/clojure-clojurescript-bef56a7/samples/nodels.cljs |