Crate node_rs[][src]

node.js

Rust stdweb bindings for the node.js API when targetting WebAssembly.

API Design

Modules are laid out in a hierarchy roughly mapping to the node.js API. Global objects are available directly off the node_rs:: namespace.

Re-exports

pub use timers::clear_timeout;
pub use timers::set_timeout;

Modules

child_process
cluster
timers

Structs

Process

Process is an interface to an object that looks like global.process.

Promise

node.js Promise implementation

PromiseCallback

A callback object that is passed to the user_callback in Promise::new. This is not a Fn() due to language limitations.

Functions

dirname

Returns the directory of the current script.

filename

Returns the file path of the current script.

process

Alias for global.process.