</>PackageGraphPackageGraph

lan-network

npmv0.2.1TypeScript

Best-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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

25 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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)

@babel/plugin-transform-typescript ^7.26.7@changesets/cli ^2.29.6@changesets/get-github-info ^0.6.0@rollup/plugin-babel ^6.0.4@rollup/plugin-commonjs ^28.0.2@rollup/plugin-node-resolve ^16.0.0@rollup/plugin-terser ^0.4.4@types/node ^22.12.0dotenv ^16.4.7lint-staged ^15.4.3npm-run-all ^4.1.5prettier ^3.4.2rimraf ^6.0.1rollup ^4.32.1rollup-plugin-cjs-check ^1.0.3rollup-plugin-dts ^6.1.1typescript ^5.7.3vitest ^3.0.6

Used by

Popular packages that depend on lan-network.

Relationship graph

Dependencies (left) and dependents (right) of lan-network.

@expo/clilan-network
lan-network dependencies dependents

Frequently installed together

Release history

18 releases in the last two years, typically about 0 days apart.

Recent versions of lan-network
VersionPublishedSizeLicense
0.2.1latest5 months ago25 KBMIT
0.2.1-canary-ee60e1415dc323843c07e3a0d0acda998ed2d9ae5 months ago25 KBMIT
0.2.1-canary-6891e4df9d8befaee243b6237d4741820d79bfa45 months ago25 KBMIT
0.2.07 months ago25 KBMIT
0.1.71 year ago38 KBMIT
0.1.7-canary-f5b38f9c48dfd16e7bc45aa611b9929bdd3f316a1 year ago38 KBMIT
0.1.61 year ago37 KBMIT
0.1.6-canary-6bf9bd3fa22667f4f84a7f3b5dc0dff433c3abab1 year ago37 KBMIT
0.1.51 year ago36 KBMIT
0.1.5-canary-ede331e7d746e36060fa7e8846549d035b41480d1 year ago36 KBMIT
0.1.41 year ago35 KBMIT
0.1.31 year ago35 KBMIT
0.1.3-canary-ab5c9378a15bb3a37bafc63289407ebf780f01d21 year ago35 KBMIT
0.1.21 year ago35 KBMIT
0.1.2-canary-e5785771c0d7af62c252ba9ca881737ee88a72a41 year ago35 KBMIT

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.