agarcia_meA
Denoβ€’2y agoβ€’
2 replies
agarcia_me

`arch` and `platform` are empty strings in `node:process`

πŸ‘‹ hello! I'm trying to use a node project that uses arch and platform inside node:process, which works great in Node, but they appear to be empty strings in Deno.

import { arch, platform } from "node:process";
console.log(arch, platform);


$ node file.mjs 
x64 darwin
$ deno run file.mjs  


Is this expected behavior? I know the Deno.build object also has this info, but I'm trying to keep it compatible with an external npm package.

Thank you!
Was this page helpful?