# Install detect-port with npm

Node.js implementation of port detector. Version 2.1.0 via npm; verified 2024-12-10.

## Install

```sh
sudo av install npm:detect-port
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g detect-port
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:detect-port
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/detect-port>
- **Version:** 2.1.0
- **Source summary:** Node.js implementation of port detector
- **Homepage:** <https://github.com/node-modules/detect-port>
- **Repository:** <https://github.com/node-modules/detect-port>
- **Upstream docs:** <https://github.com/node-modules/detect-port>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/detect-port/-/detect-port-2.1.0.tgz>
- **Issue tracker:** <https://github.com/node-modules/detect-port/issues>
- **Published:** 2024-12-10T03:41:16.902Z
- **Last updated:** 2024-12-10T03:41:16.902Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- detect (cli)
- detect-port (cli)
- detect-port (alias)

## Dependencies

- address

## Build dependencies

- @eggjs/tsconfig
- @types/mocha
- @types/node
- egg-bin
- eslint
- eslint-config-egg
- execa
- mm
- strip-ansi
- tshy
- tshy-after
- typescript

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 2.1.0
- Package-manager updated: 2024-12-10
- Local data: ok
- Upstream repository: https://github.com/node-modules/detect-port
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for detect-port. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 2.1.0, Release 1.x: 1.6.1
- **Version Count:** 33
- **Maintainers:** fengmk2, xudafeng, ziczhu
- **Publisher:** fengmk2
- **Engines:** Node: >= 16.0.0
- **Integrity:** sha512-epZuWb/6Q62L+nDHJc/hQAqf8pylsqgk3BpZXVBx1CDnr3nkrVNn73Uu1rXcFzkNcc+hkP3whuOg7JZYaQB65Q==
- **Shasum:** 03d72644891fa451ca5609b83107a8a0ebd03f91
- **Unpacked Size:** 55,342
- **File Count:** 0
- **Created At:** 2015-05-29T17:24:30.990Z
- **Latest Published At:** 2024-12-10T03:41:16.902Z
- **Modified At:** 2024-12-10T03:41:17.418Z


## Related links

- [Networking and protocol packages](https://pkg.so/networking-protocol-tools/) - Matched curated package taxonomy and local package facts.
- [adminjs](https://pkg.so/npm/adminjs/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, networking, node, node-js.
- [aspida](https://pkg.so/npm/aspida/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, networking, node, node-js.
- [blessed](https://pkg.so/npm/blessed/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, networking, node, node-js.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
