node-yuma123
Version:
Node.js bindings for the Yuma123 library
12 lines (8 loc) • 347 B
JavaScript
import { NCX_DISPLAY_MODE_XML_NONS, yangcli, safeConnect} from "../index.js";
const server = "127.0.0.1";
const port = 830;
const username = "user";
const password = "pass";
const connection = safeConnect(server, port, username, password, null, null, null);
let res = yangcli(connection, "xget /", NCX_DISPLAY_MODE_XML_NONS);
console.log(res);