@leichtgewicht/network-interfaces
Observing network interfaces and changes to them.
Last updated 2 years ago by leichtgewicht .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @leichtgewicht/network-interfaces 
SYNC missed versions from official npm registry.

network-interfaces

Build Status JavaScript Style Guide Maintainability Test Coverage

network-interfaces is similar to os.networkInterfaces() but offers a cross-platform util to listen to changes in the network setup.

npm i @leichtgewicht/network-interfaces --save

Usage

The simplest usage of it is by using creating a change-stream:

const { networkInterfaces, JSONStringMode } = require('@leichtgewicht/network-interfaces')
const { changes, warnings } = networkInterfaces.stream(JSONStringMode.line)

changes.pipe(process.stdout)
warnings.pipe(process.stderr)

By the way, you can also get this through npx ????

$ npx @leichtgewicht/network-interfaces

API

For the time being, look into:

./index.d.ts

License

MIT

Current Tags

  • 1.0.3                                ...           latest (2 years ago)

4 Versions

  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (4)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |