You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constcommand=newDeno.Command(Deno.execPath(),{args: ["run","-",],stdin: "piped"});constchild=command.spawn();child.stdin.write("console.log('hello')")child.stdin.close();conststatus=awaitchild.status;// wait for exit
In most cases, you don't need to precise control when to write something,
Inspired by Bun, if you can just put something like Response to the stdin option,
and it automatically do the thing for you.
constcommand=newDeno.Command(Deno.execPath(),{args: ["run","-",],stdin: newResponse("console.log('hello')")});constchild=command.spawn();conststatus=awaitchild.status;// wait for exit
node:crypto only have support for algorithm supported in openssl.
But in nowadays, we may use more likely to use argon2, yescrypt for hashing passwords,
but those isn't in node:crypto, if we can just
We need more thing and improvements in
Deno.*
!Progress Tracing
Deno.Command
#28276Simplify
Deno.Command
To pass things into stdin you need to:
In most cases, you don't need to precise control when to write something,
Inspired by Bun, if you can just put something like
Response
to thestdin
option,and it automatically do the thing for you.
Deno.hash / Deno.password
In Node.js, we do hash like:
node:crypto
only have support for algorithm supported in openssl.But in nowadays, we may use more likely to use argon2, yescrypt for hashing passwords,
but those isn't in
node:crypto
, if we can justand
it will be more easier to use, and
implementation in native will also be faster.
(or maybe use wasm to avoid v8 internal binding costs)
The text was updated successfully, but these errors were encountered: