npm.io
0.1.2 • Published 9 years ago

scanlan

Licence
MIT
Version
0.1.2
Deps
2
Vulns
1
Weekly
0

searchLAN

Node.js package that searchs the LAN for IP addresses.

Installing

npm install searchlan --save

Example

It can be found in the /example folder.

var scanLAN = require('../index.js');

scanLAN('192.168.0.1').then(result => {
    console.log(result); //['192.168.0.1, '192.168.0.2', ..., '192.168.0.254']
})

scanLAN('192.168.0.1', 10000, 100, 110).then(result => {
    console.log(result); //['192.168.0.1, '192.168.0.100', ..., '192.168.0.109'] with a 10 second timeout
})

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Credits

Keywords