lan-network
npmv0.2.1TypeScriptBest-effort discovery of the machine's default gateway and local network IP exclusively with UDP sockets.
Safe to adopt
Yes — lan-network scores well across adoption, maintenance, weight, supply chain, and licensing. 6M downloads per week and 1 known dependents. Last published 156 days ago. 18 releases in the last 2 years.
- AAdoption: grade A, Excellent.
6M downloads per week and 1 known dependents.
- BMaintenance: grade B, Good.
Last published 156 days ago. 18 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 25 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding lan-network to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Dependencies
Declared by lan-network v0.2.1. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (18)
Used by
Popular packages that depend on lan-network.
Relationship graph
Dependencies (left) and dependents (right) of lan-network.
Frequently installed together
Expo Router is a file-based router for React Native and web applications.
The Expo SDK
TypeScript-first schema declaration and validation library with static type inference
Better streaming static file server with Range and conditional-GET support
Create clickable links in the terminal
A library for interacting with the app.json
Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
A high-level API to automate web browsers
Lightweight debugging utility for Node.js and the browser
Get details about the current Continuous Integration environment
TypeScript definitions for ws
Stringify any JavaScript value.
Release history
18 releases in the last two years, typically about 0 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.2.1latest | 5 months ago | 25 KB | MIT |
| 0.2.1-canary-ee60e1415dc323843c07e3a0d0acda998ed2d9ae | 5 months ago | 25 KB | MIT |
| 0.2.1-canary-6891e4df9d8befaee243b6237d4741820d79bfa4 | 5 months ago | 25 KB | MIT |
| 0.2.0 | 7 months ago | 25 KB | MIT |
| 0.1.7 | 1 year ago | 38 KB | MIT |
| 0.1.7-canary-f5b38f9c48dfd16e7bc45aa611b9929bdd3f316a | 1 year ago | 38 KB | MIT |
| 0.1.6 | 1 year ago | 37 KB | MIT |
| 0.1.6-canary-6bf9bd3fa22667f4f84a7f3b5dc0dff433c3abab | 1 year ago | 37 KB | MIT |
| 0.1.5 | 1 year ago | 36 KB | MIT |
| 0.1.5-canary-ede331e7d746e36060fa7e8846549d035b41480d | 1 year ago | 36 KB | MIT |
| 0.1.4 | 1 year ago | 35 KB | MIT |
| 0.1.3 | 1 year ago | 35 KB | MIT |
| 0.1.3-canary-ab5c9378a15bb3a37bafc63289407ebf780f01d2 | 1 year ago | 35 KB | MIT |
| 0.1.2 | 1 year ago | 35 KB | MIT |
| 0.1.2-canary-e5785771c0d7af62c252ba9ca881737ee88a72a4 | 1 year ago | 35 KB | MIT |
Overview
lan-network is an npm package that best-effort discovery of the machine's default gateway and local network IP exclusively with UDP sockets. It is very popular, with about 6M downloads per week and 1 known dependents in the graph. The latest version is 0.2.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need best-effort discovery of the machine's default gateway and local network IP exclusively with UDP sockets and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (6M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (18 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use lan-network?
Yes — lan-network scores well across adoption, maintenance, weight, supply chain, and licensing. 6M downloads per week and 1 known dependents. Last published 156 days ago. 18 releases in the last 2 years.
How do I install lan-network?
Run `npm install lan-network` to add lan-network to your npm project.
What license is lan-network released under?
lan-network is distributed under the MIT license.
How popular is lan-network?
lan-network has approximately 5,973,571 downloads per week and 1 known dependent packages.
Is lan-network still maintained?
The most recent release of lan-network (v0.2.1) was published 5 months ago.
Does lan-network run install scripts?
No. lan-network does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.