JSPM

node-wol

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1539
  • Score
    100M100P100Q109240F

Wake on LAN for node.js

Package Exports

  • node-wol

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-wol) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Wake on LAN for node.js

This is a fork of (node_wake_on_lan)[https://github.com/agnat/node_wake_on_lan] 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;
  }
});