BetterThanTomorrow / joyride

Making VS Code Hackable like Emacs since 2022
https://marketplace.visualstudio.com/items?itemName=betterthantomorrow.joyride
Other
458 stars 17 forks source link

Support loading modules from npm #92

Closed PEZ closed 1 year ago

PEZ commented 1 year ago

To make Joyride an even more viable alternative to rolling a full extension, we want to support things like this:

(ns npm
  (:require ["moment" :as moment]))

(.format (moment) "dddd")

(require '["axios" :as axios]
         '[promesa.core :as p])

(def result (atom nil))
(->
 (axios.get "https://clojure.org")
 (p/then #(reset! result %)))