SyrupThinker
Deno console.log() all items of array
To get the exact formatting you can use
Deno.inspect
with some options (https://deno.land/api@v1.36.2?s=Deno.InspectOptions)
7 replies
I cant import the Zustand module from deno.
Hmm ok, that file is not a proper ES module.
Let's go with npm, does
npm:zustand@4.4
and npm:zustand@4.4/vanilla
work for you, or how does it fail?
What libraries do you guys use with preact to handle stores?Can't help with that, gotta hope somebody else sees this or just ask in #fresh I guess 🤷♂️
21 replies
I cant import the Zustand module from deno.
If you want to import the
index.ts
with plain zustand
the import map should point to the https://deno.land/x/zustand@v4.4.0/src/index.ts file.
For the vanilla import you also need to point to the actual file, so
21 replies
Log Deno.command process output
You could use https://deno.land/std@0.195.0/streams/mod.ts?s=TextLineStream for directly using the
ReadableStream
.
Alternatively you could use https://deno.land/std@0.195.0/streams/mod.ts?s=readerFromStreamReader to create a Reader
compatible with readLines
.5 replies