This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-22
Channels
- # announcements (18)
- # babashka (9)
- # beginners (22)
- # biff (2)
- # calva (17)
- # clj-kondo (5)
- # clojure (9)
- # clojure-europe (25)
- # clojure-nl (1)
- # clojure-norway (3)
- # clojure-uk (7)
- # clojuredesign-podcast (6)
- # clojurescript (61)
- # cursive (11)
- # data-science (1)
- # datahike (3)
- # datomic (2)
- # humbleui (2)
- # hyperfiddle (7)
- # jobs (1)
- # jobs-discuss (4)
- # joyride (1)
- # overtone (7)
- # re-frame (2)
- # reitit (9)
- # releases (2)
- # remote-jobs (8)
- # scittle (1)
- # shadow-cljs (48)
- # squint (8)
squint, compile an expression + run it immediately, in deno:
$ time deno run -A npm:squint-cljs -e '(js/console.log (+ 1 2 3))'
6
deno run -A npm:squint-cljs -e '(js/console.log (+ 1 2 3))' 0.05s user 0.01s system 94% cpu 0.059 total
with deno.json
being:
{
"imports": {
"squint-cljs": "npm:squint-cljs",
"squint-cljs/core.js": "npm:squint-cljs/core.js"
}
}
👏 5
Is npm
an alias?
Or is that a different -A
option?
But -A still refers to an alias... Confused the heck out of me!
-A
in deno means drop all security restrictions to allow reading from the network etc, npm:
means: use the package from NPM
I was like, why is there no :
in front of that alias:rolling_on_the_floor_laughing: