Socket
Socket
Sign inDemoInstall

node-mndp

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-mndp

A Mikrotik Network Discovery Protocol in Node


Version published
Maintainers
1
Weekly downloads
1,864
decreased by-3.02%

Weekly downloads

Readme

Source

Node MNDP

Mikrotik Network Discovery Protocol

This is an implementation written in Node

Usage Example

var NodeMndp = require('node-mndp');
var discovery = new NodeMndp({
    port: 5678
});

discovery.on('deviceFound', (device) => {
    // retrieve found device here
})

discovery.start();

Ipv6 Example

var NodeMndp = require('node-mndp');
var discovery = new NodeMndp({
    port: 5678,
    host: "::",
    version: "udp6"
});

discovery.on('deviceFound', (device) => {
    // retrieve found device here
})

discovery.start();

API

var NodeMndp = require('node-mndp');
var discovery = new NodeMndp({
    port: 5678
});
discovery.constructor({options: Options})
options {
    `host` : default = 0.0.0.0
    `port` : default = 5678
    `version` : default = udp4
}
discovery.start() -> void
discovery.stop() -> void
Event: 'deviceFound'

Output:
{
    "ipAddress":"192.168.88.1",
    "macAddress":"aabbccddeeff",
    "identity":"Mikrotik",
    "version":"6.41.2 (stable)"
}

Event: 'error' -> string
Event: 'started' -> string

Pull requests are welcome!

Keywords

FAQs

Last updated on 01 Jul 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc