包详细信息

on-change-network-strict

staltz16.2kMIT1.0.0

detect when computer changes (wifi) networks

自述文件

on-change-network-strict

A fork of on-change-network that "uses strict" JS.

Call a listener whenever the network interface changes. I.e. detect when the local user has changed to another wifi network.

example

require('on-change-network-strict')(function () {
  console.log('wifi changed')
})

License

MIT