GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - electron-modules/network-interface: Operating system network-related library for Node.js is used to obtain hardware status and network environment changes, etc.

BranchesTags
Open more actions menu

Latest commit

 

History

26 Commits
26 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
images
images
 
 
src
src
 
 
test
test
 
 
.eslintignore
.eslintignore
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
appveyor.yml
appveyor.yml
 
 
binding.gyp
binding.gyp
 
 
index.js
index.js
 
 
package.json
package.json
 
 

Repository files navigation

network-interface


electron modules NPM version build status node version npm download

Operating system network-related library for Node.js is used to obtain hardware status and network environment changes, etc.

Introduction

The goal of this project is to provide a library that can be used by Node.js so that we can accurately obtain the current computer network status and support the integrated use of frameworks like Electron. At this stage, only some APIs of wlanapi and netlistmgr are wrapped.

More cases

  1. https://paradite.com/2016/09/28/my-experience-building-progressive-web-app-pwa
  2. electron/electron#11290

Installment

$ npm i network-interface --save

Usage

const networkInterface = require('network-interface');

networkInterface.addEventListener('wlan-status-changed', (error, data) => {
  if (error) {
    throw error;
    return;
  }
  console.log('event fired: wlan-status-changed');
  console.log(data);
});

Future plan

Only supports windows platform? Because I don’t need to solve the problems of other platforms, others may be supported in the future, and hope you can give some contributions.

Contributors


xudafeng

This project follows the git-contributor spec, auto updated at Wed Dec 08 2021 11:38:44 GMT+0800.

License

The MIT License (MIT)

About

Operating system network-related library for Node.js is used to obtain hardware status and network environment changes, etc.

Topics

hardware-statusnetworkwifiwifi-networkwlanapi

Resources

Readme
Activity
Custom properties

Stars

45 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.