deno / 1.23.2 / ~ / deno.resources.html /

Deno.resources

Returns a map of open resource ids (rid) along with their string representations. This is an internal API and as such resource representation has any type; that means it can change any time.

console.log(Deno.resources());
// { 0: "stdin", 1: "stdout", 2: "stderr" }
Deno.openSync('../test.file');
console.log(Deno.resources());
// { 0: "stdin", 1: "stdout", 2: "stderr", 3: "fsFile" }
function resources() : ResourceMap;
resources() : ResourceMap

Return Type

© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.resources