(def node-gitlab-api (js/require "node-gitlab-api"))
(def api (node-gitlab-api #js {:url "" :token ""}))
(-> (.all api.projects #js {:max_pages 1 :per_page 5})
(.then #(doseq [project %]
(println project))))
One thing I noticed is that there’s for...of iteration which doesn’t seem necessary here, bc most likely projects is just a collection of data. But if it’s really a custom iterable object, then the code might be a bit different.