Registry / networking / node-sys

node-sys

JSON →
library0.4.2rscratesunverified

Raw bindings to the Node.js API for projects using wasm-bindgen.

# Cargo.toml [dependencies] node-sys = "0.4.2"
INSTALL
IMPORT
SIG · NODE-SYS
N
node-sys
networkingrustv0.4.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

require
use node_sys::require;

Load a Node.js module using require from within a WASM context.

use node_sys::require; fn main() { let fs = require("fs"); println!("Loaded fs module: {:?}", fs); }
Debug
Known issues
gotchaRequires wasm-bindgen and a Node.js runtime environment
fix
Ensure your project is set up with wasm-bindgen and target nodejs
affects: >=0.1.0
Upgrade
Version history
0.4.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
node-sys — cargo add node-sys · libregistry