dan.the.discloser
using both nodejs & deno
I have to turn in my class assignments in nodejs.
I am happier with deno.
Is there a standard way to write code so that the same code base can be used both ways?
My naive though would to hide the differences behind maps.
Is there a better way to accomplish this?
8 replies
mongodb calls on DB's rather than collections
When I do a
find
on a mongoclient
rather than a collection
I get a cursor with the proper looking data but without
.hasNext()
, .next()
.map()
or .toArray()
defined on it as I would if I was using
collection.find
Is there a way for me to attach them?
It looks like this normally defined in class CommandCursor<T>
in
denodrivers/mongo/src/protocol/2 replies
can i bypass strict mode?
When I try use
Deno Run
, it complains
error: Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
const answer = o[s];
^9 replies
Code Pilot
I was just reading about copilot
https://docs.github.com/en/copilot
any issues with using it with Deno and/or Deno mode is Visual Studio Code?
4 replies