npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

ls-lan

1.0.0

@mafintosh

npmHomeRepoSnykSocket
Downloads:1
$ npm install ls-lan
DailyWeeklyMonthlyYearly

ls-lan

List all IPs on the local LAN

npm install -g ls-lan

Usage

Simply lists all IPs on the local LAN. Currently only works on macOS, but PR support for other OS'es

ls-lan # Prints a list of IPs found on the local LAN

There is a js API available as well

const ls = require('ls-lan')

ls(function (err, ips) {
  if (err) throw err
  console.log(ips.join('\n'))
})

License

MIT