cljs.js/file->ns

functionsince v1.7.10Edit
(file->ns file)

Source code @ clojurescript:src/main/cljs/cljs/js.cljs
(defn file->ns
  [file]
  (let [lib-name (subs (string/replace file "/" ".")
                   0 (- (count file) 5))]
    (symbol (demunge lib-name))))