cljs.repl/ns-info

functionsince v0.0-2814Edit
(ns-info f)

Source docstring:
Given a path to a js source file return the ns info for the corresponding
ClojureScript file if it exists.
Source code @ clojurescript:src/main/clojure/cljs/repl.cljc
(defn ns-info
  [f]
  (let [f' (js-src->cljs-src f)]
    (when (and f' (.exists f'))
      (ana/parse-ns f'))))