slavery-js
Version:
A simple clustering app that allows you to scale an application on multiple thread, containers or machines
11 lines (8 loc) • 318 B
text/typescript
export { default as getPort } from 'get-port';
interface NetworkInterfaceInfo {
ip: string;
subnet: string;
}
declare function getLocalIpAndSubnet(): NetworkInterfaceInfo[];
declare function findLocalIpOnSameNetwork(targetIp: string): string | null;
export { findLocalIpOnSameNetwork, getLocalIpAndSubnet };