Skip to content

Instantly share code, notes, and snippets.

@tomisme
Created May 6, 2018 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomisme/aaebd33a33631482bee1162018418c19 to your computer and use it in GitHub Desktop.
Save tomisme/aaebd33a33631482bee1162018418c19 to your computer and use it in GitHub Desktop.
get available namespaces in clojurescript
; self-hosted env
(-> @cljs.env/*compiler* :cljs.analyzer/namespaces keys)
;; non-self-hosted env
(defmacro namespaces [] `'~(cljs.analyzer.api/all-ns))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment