Skip to content

Brooooooklyn/network-change

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@napi-rs/network-change

https://github.com/Brooooooklyn/network-change/actions

Observe network change event in Node.js.

Important

This package is working in progress, and only support Windows and macOS now.

Install

yarn add @napi-rs/network-change
pnpm add @napi-rs/network-change

Usage

import { NwPathMonitor } from '@napi-rs/network-change';


const monitor = new NwPathMonitor();
monitor.start((path) => {
  console.log('network change', path);
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •