pub fn data_module(spec: &str) -> Option<Value>Expand description
Canonical namespace name a require(spec) resolves to (after stripping an
optional node: prefix), or None for an unsupported module.
Core modules whose export is a plain DATA value rather than a namespace of
methods. require('constants') is the only one: every member is a number,
so it is built as a real object instead of a Builtin handle, whose members
are dispatchable methods by construction.