Skip to main content

namespace_keys

Function namespace_keys 

Source
pub fn namespace_keys(ns: &str) -> Vec<String>
Expand description

The enumerable own keys of the builtin namespace ns — what for (key in ns) and Object.keys(ns) yield. These are the members node-js ACTUALLY implements, not Node’s full export list, so a package that copies a namespace key-by-key (safer-buffer clones buffer and Buffer) ends up with exactly the working set rather than an empty object.