get-port

Get an available TCP port

MIT License

Downloads
37.2M
Stars
849
Committers
21

Bot releases are visible (Hide)

get-port - Latest Release

Published by sindresorhus 7 months ago

get-port -

Published by sindresorhus over 1 year ago

Breaking

  • Require Node.js 16 5cc3422

Improvements

  • Use timeout instead of interval for releasing ports (#68) bd8a403

https://github.com/sindresorhus/get-port/compare/v6.1.2...v7.0.0

get-port -

Published by sindresorhus over 2 years ago

  • Fix portNumbers argument validation and number generation (#64) 1fb0e70

https://github.com/sindresorhus/get-port/compare/v6.1.1...v6.1.2

get-port -

Published by sindresorhus over 2 years ago

  • Mark package as side effect free (#63) d7ba424

https://github.com/sindresorhus/get-port/compare/v6.1.0...v6.1.1

get-port -

Published by sindresorhus over 2 years ago

get-port -

Published by sindresorhus about 3 years ago

Breaking

  • Require Node.js 12.20 c08a4ae
  • This package is now pure ESM. Please read this.
  • require('get-port').makeRange => import {portsNumbers] from 'get-port'

Improvements

  • Check all local hosts for port availability (#56) c3bbed9

https://github.com/sindresorhus/get-port/compare/v5.1.1...v6.0.0

get-port -

Published by sindresorhus almost 5 years ago

  • Fix unref'ing the timer in some environments (#40) 0a447b1

https://github.com/sindresorhus/get-port/compare/v5.1.0...v5.1.1

get-port -

Published by sindresorhus almost 5 years ago

  • Fix in-process race condition (#36) 73e21d8
  • Fall back to a random port if preferred port is privileged (#39) 45a71bc

https://github.com/sindresorhus/get-port/compare/v5.0.0...v5.1.0

get-port -

Published by sindresorhus over 5 years ago

Breaking:

  • Require Node.js 8 (#29) 1ec2a88
  • For TypeScript users only:
    • Refactor TypeScript definition to CommonJS compatible export (#29) 1ec2a88
      • You need to change import getPort from 'get-port'; to import getPort = require('get-port');

Enhancements:

  • Add makeRange() helper method (#28) 5ed7b68

https://github.com/sindresorhus/get-port/compare/v4.2.0...v5.0.0

get-port -

Published by sindresorhus over 5 years ago

get-port -

Published by sindresorhus almost 6 years ago

  • Don't mutate the user-supplied object f787bfc
  • Use the correct host when falling back 1d9e4ee
  • Remove redundant promise constructor (#25) af65ada