Skip to main content

require

Function require 

Source
pub fn require(spec: &str, from_dir: &Path) -> Result<Value, String>
Expand description

require(spec) from from_dir: the single entry point shared by the top-level require builtin and the per-module __cjs_require. Returns the module’s exports value.