workflow-node 0.19.0

Utilities and curated re-exports for Node.js APIs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::node_sys::interface::ReadWriteStream;
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
extern "C" {
    #[wasm_bindgen(extends = ReadWriteStream)]
    pub type Socket;

    #[wasm_bindgen(method, getter, js_name = "isTTY")]
    pub fn is_tty(this: &Socket) -> bool;
}