node-wol

Wake on LAN for node.js

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
node-wol
1320.1.19 years ago9 years agoMinified + gzip package size for node-wol in KB

Readme

Wake on LAN for node.js
This is a fork of (nodewakeonlan)https://github.com/agnat/nodewakeonlan by (agnat)https://github.com/agnat. Credits go to him.
Install via npm install node-wol

Usage

var wol = require('node-wol');

wol.wake('20:DE:20:DE:20:DE');

wol.wake('20:DE:20:DE:20:DE', function(error) {
  if(error) {
    // handle error
    return;
  }
});

var magicPacket = wol.createMagicPacket('20:DE:20:DE:20:DE');

Optional options

  • address (optional ip address)
  • port (optional port; default is 9)

wol.wake('20:DE:20:DE:20:DE', {
  address: '192.168.10.12',
  port: 7
}, function(error) {
  if(error) {
    // handle error
    return;
  }
});