npm install wakeonlan##### Wake On Lan for Node.js
Sends a sequence of Wake-on-LAN packets to the specified MAC address. Returns a Promise.
Inspired by node_wake_on_lan
``javascript
const wol = require('wakeonlan')
// MAC is case-insensitive. colons optional
wol('04:18:D6:A0:47:27').then(() => {
console.log('wol sent!')
})
`
``javascript``
wol(mac, [opts])
- address :'255.255.255.255'
The destination address. Default :
- count :3
Number of packets to send. Default :
- interval :100
Interval between packets. Default :
- port :9
Port to send to. Default :
- from :null`
Source address for socket. If not specified, packets will be sent out to the broadcast address of all IPv4 interfaces. Default :