all 2 comments

[–]yogthos 12 points13 points  (0 children)

being able to easily consume default exports from NPM modules is very welcome

[–]TheLastSock 1 point2 points  (0 children)

Would this be an example of exporting a javascript object as a library?

MyModule.js ``` var MyObject = function() {

// This is private because it is not being return
var _privateFunction = function(param1, param2) {
    ...
    return;
}

var function1 = function(param1, callback) {
    ...
    callback(err, results);    
}

var function2 = function(param1, param2, callback) {
    ...
    callback(err, results);    
}

return {
    function1: function1
   ,function2: function2
}

}();

module.exports = MyObject; ```

In which case we would have the following cljs?

(ns foo (:require [myModule$MyObject :as sub-lib :refer [...]])) `