libnode_rs 0.0.2

Library embedding Nodejs (libnode) within Rust
Documentation
1
2
3
4
5
6
use super::start_blocking;

pub fn eval_blocking<Code: AsRef<str>>(code: Code) -> crate::Result<()> {
  start_blocking(&["--experimental-strip-types", "--disable-warning=ExperimentalWarning", "-e", code.as_ref()])?;
  Ok(())
}