agarcia_me
agarcia_me
DDeno
Created by agarcia_me on 2/22/2024 in #help
`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);
import { arch, platform } from "node:process";
console.log(arch, platform);
$ node file.mjs
x64 darwin
$ deno run file.mjs
$ 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!
3 replies