Skip to content

gigafied/wakeonlan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

const wol = require('wakeonlan')

// MAC is case-insensitive. colons optional
wol('04:18:D6:A0:47:27').then(() => {
  console.log('wol sent!')
})

usage

wol(mac, [opts])

options

  • address : The destination address. Default : '255.255.255.255'

  • count : Number of packets to send. Default : 3

  • interval : Interval between packets. Default : 100

  • port : Port to send to. Default : 9

  • from : Source address for socket. If not specified, packets will be sent out to the broadcast address of all IPv4 interfaces. Default : null

About

Wake-on-LAN for Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published