function | since v0.0-2814 | Edit |
(ns-info f)
Given a path to a js source file return the ns info for the corresponding ClojureScript file if it exists.
(defn ns-info
[f]
(let [f' (js-src->cljs-src f)]
(when (and f' (.exists f'))
(ana/parse-ns f'))))