npm install --save nights-watch-node
const NWNode = require('nightswatch-node');
// Create a node
const node = new NWNode({
"host": "127.0.1.1",
"port": 22,
"username": "your-username",
"password": "your-password"
});
// Connect to the remote machine
node.connect()
.then(async () => {
// Get computer uptime
await node.getUptime(); // returns {uptime: xxx, idle: xxx}
// Get CPU information
await node.getCPUs() // {id: xxx, arch: xxx, vendor: xxx, modelName: xxx}
});
Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced. Feel free to learn more about him.
Yeoman and Generator-simple-package
MIT © nghiattran