pub fn constant(name: &str) -> Option<Value>Expand description
A non-function member of the repl namespace, reachable via
namespace_property IF the parent routes "repl" into stdlib::constant.
repl.REPLServer— the server class. node-js has no first-class exposed REPLServer constructor (the server object is produced bystart()), so this is documented-only and returnsNone; userepl.start().repl.writer— Node’s default output formatter (util.inspect). We expose it as theutil.inspectbuiltin sorepl.writer(value)formats identically to the REPL’s own result rendering.
Requires the parent to route "repl" into stdlib::constant.