Skip to content

A module used to gather information about computing node for Night's Watch app.

License

Notifications You must be signed in to change notification settings

Nileast/nightswatch-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nights-watch-nodeinfo

NPM version Dependency Status

Installation

  npm install --save nights-watch-node

Usage

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}
  });

Getting To Know Yeoman

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.

Created with

Yeoman and Generator-simple-package

License

MIT © nghiattran

About

A module used to gather information about computing node for Night's Watch app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published