New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wake_on_lan

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wake_on_lan - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

README.md

49

package.json

@@ -1,27 +0,30 @@

{ "name" : "wake_on_lan"
, "version" : "0.0.4"
, "description" : "generate and send Wake-on-LAN magic packets"
, "main": "./wake_on_lan.js"
, "licenses": [
{ "type": "MIT"
, "url": "http://github.com/agnat/node_wake_on_lan/raw/master/LICENSE"
{
"name": "wake_on_lan",
"version": "0.0.5",
"description": "generate and send Wake-on-LAN magic packets",
"main": "./wake_on_lan.js",
"licenses": [
{
"type": "MIT",
"url": "http://github.com/agnat/node_wake_on_lan/raw/master/LICENSE"
}
]
, "bugs": { "url": "http://github.com/agnat/node_wake_on_lan/issues" }
, "repository":
{ "type": "git"
, "url": "git://github.com/agnat/node_wake_on_lan.git"
}
, "author": {
"name": "David Siegel"
, "email": "david@artcom.de"
, "github": "agnat"
}
, "contributors": [
{ "name": "Jann Horn"
, "github": "thejh"
],
"bugs": {
"url": "http://github.com/agnat/node_wake_on_lan/issues"
},
"repository": {
"type": "git",
"url": "git://github.com/agnat/node_wake_on_lan.git"
},
"author": {
"name": "David Siegel",
"email": "david@artcom.de",
"github": "agnat"
},
"contributors": [
{
"name": "Jann Horn",
"github": "thejh"
}
]
}

@@ -6,6 +6,10 @@ var dgram = require('dgram')

var allocBuffer = Buffer.alloc ?
function allocBuffer(s) { return Buffer.alloc(s) } :
function allocBuffer(s) { return new Buffer(s) }
var mac_bytes = 6;
exports.createMagicPacket = function(mac) {
var mac_buffer = new Buffer(mac_bytes)
var mac_buffer = allocBuffer(mac_bytes)
, i

@@ -25,3 +29,3 @@ ;

var num_macs = 16
, buffer = new Buffer((1 + num_macs) * mac_bytes);
, buffer = allocBuffer((1 + num_macs) * mac_bytes);
for (i = 0; i < mac_bytes; ++i) {

@@ -28,0 +32,0 @@ buffer[i] = 0xff;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc