{"versions":{"1.0.1":{"name":"get-ports","version":"1.0.1","description":"gets multiple open ports","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"map-limit":"0.0.1"},"devDependencies":{"faucet":"0.0.1","standard":"^5.3.1","tape":"^4.2.1"},"scripts":{"test":"standard && node test.js | faucet"},"keywords":["get","port","find","portfind","finding","finds","gets","portfinding","portfinder","multiple"],"repository":{"type":"git","url":"git://github.com/Jam3/get-ports.git"},"homepage":"https://github.com/Jam3/get-ports","bugs":{"url":"https://github.com/Jam3/get-ports/issues"},"gitHead":"6bf5932866c56e525c076b3909578c1251a83b15","_id":"get-ports@1.0.1","_shasum":"7a0fc101d019e97507bdd0153794093159ec0c91","_from":".","_npmVersion":"2.14.5","_nodeVersion":"0.12.7","_npmUser":{"name":"anonymous","email":"dave.des@gmail.com"},"dist":{"shasum":"7a0fc101d019e97507bdd0153794093159ec0c91","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/get-ports/-/get-ports-1.0.1.tgz","integrity":"sha512-/hn6kku0M6Sbk1PRaR9wG6iJySRImNE1WW0KYNk6UNCfMPii0ZnQ0mcl/aJaBnWMXJ7CK2zqc+pkskAHgVTYEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2Usb8ev85x484lyOSH1KFPoIpQucNFirUFsPwsMEH+gIhAN99xNm2ykdZ1PSFfw38a7/3OJCLF7XnPpEqlvfQ9zMR"}]},"maintainers":[{"name":"anonymous","email":"dave.des@gmail.com"}],"contributors":[]},"1.0.2":{"name":"get-ports","version":"1.0.2","description":"gets multiple open ports","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"map-limit":"0.0.1"},"devDependencies":{"faucet":"0.0.1","standard":"^5.3.1","tape":"^4.2.1"},"scripts":{"test":"standard && node test.js | faucet"},"keywords":["get","port","find","portfind","finding","finds","gets","portfinding","portfinder","multiple"],"repository":{"type":"git","url":"git://github.com/Jam3/get-ports.git"},"homepage":"https://github.com/Jam3/get-ports","bugs":{"url":"https://github.com/Jam3/get-ports/issues"},"gitHead":"4a635a42d08b104ebd4bf3e19873fd9a2575581e","_id":"get-ports@1.0.2","_shasum":"bd3dd1a41c4abbd2657a05e23255b35562bd7be1","_from":".","_npmVersion":"2.14.5","_nodeVersion":"0.12.7","_npmUser":{"name":"anonymous","email":"dave.des@gmail.com"},"dist":{"shasum":"bd3dd1a41c4abbd2657a05e23255b35562bd7be1","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/get-ports/-/get-ports-1.0.2.tgz","integrity":"sha512-cj8i8RD3Jk5ZXWJTQLwhXYkZdtTr9GKGZEfISnvq3/eZhEzVhQW65MapMhJHnKKEsqwe7VhipdLw2UJFIYoLkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJCNfAWrrRuzIKH4Rn+8irBkt3pAubKSHH8etFVZa98QIgVzcOQqPSEuAtpVaqMLRnt0iP20/85WHmUiO43NFxyjA="}]},"maintainers":[{"name":"anonymous","email":"dave.des@gmail.com"}],"contributors":[]},"1.0.3":{"name":"get-ports","version":"1.0.3","description":"gets multiple open ports","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"map-limit":"0.0.1"},"devDependencies":{"faucet":"0.0.1","standard":"^5.3.1","tape":"^4.2.1"},"scripts":{"test":"standard && node test.js | faucet"},"keywords":["get","port","find","portfind","finding","finds","gets","portfinding","portfinder","multiple"],"repository":{"type":"git","url":"git://github.com/Jam3/get-ports.git"},"homepage":"https://github.com/Jam3/get-ports","bugs":{"url":"https://github.com/Jam3/get-ports/issues"},"gitHead":"0d704ba3d4dbab6d7443c41ebc22801c4050c3ee","_id":"get-ports@1.0.3","_shasum":"f40bd580aca7ec0efb7b96cbfcbeb03ef894b5e8","_from":".","_npmVersion":"2.14.12","_nodeVersion":"5.0.0","_npmUser":{"name":"anonymous","email":"dave.des@gmail.com"},"dist":{"shasum":"f40bd580aca7ec0efb7b96cbfcbeb03ef894b5e8","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/get-ports/-/get-ports-1.0.3.tgz","integrity":"sha512-XtNFp93OT2wNEX/PkcCJ5+4PR5fxYCK+J2BsfJO8eV7hCYbqROt+8XO6iApJqJ06A2UJMUueDCoJ1Lp5vypuDw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRAWX6fIs0gmXDBKsd42q7nNI+p3SjmojVIvdRUR5pzQIgK+QJ3kQDWPaI+gMs7GyxRVM8/DO9fgk/FevEmCt/fIo="}]},"maintainers":[{"name":"anonymous","email":"dave.des@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/get-ports-1.0.3.tgz_1458053450082_0.5014791653957218"},"contributors":[]}},"dist-tags":{"latest":"1.0.3"},"name":"get-ports","time":{"modified":"2023-08-04T13:20:29.721Z","created":"2022-01-27T00:28:03.839Z","1.0.1":"2015-10-08T16:10:26.773Z","1.0.2":"2015-10-08T16:18:55.676Z","1.0.3":"2016-03-15T14:50:53.494Z"},"readme":"# get-ports\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nFinds multiple open ports after your specified base ports, and below the max range. \n\nUnlike [getport](https://github.com/mikeal/getport) or [get-port](https://github.com/sindresorhus/get-port), this is useful for situations where you need multiple servers to run on open ports.\n\nIf not all ports could be found, the error callback is triggered.\n\n## Install\n\n```sh\nnpm install get-ports --save\n```\n\n## Example\n\nThe resulting `ports` array is parallel to your input (base) ports.\n\nFor example, if port `8000` and `9966` are already in use:\n\n```js\nvar getPorts = require('get-ports')\n\ngetPorts([ 8000, 9966 ], function (err, ports) {\n  if (err) throw new Error('could not open servers')\n  \n  console.log(ports)\n  //=> [ 8001, 9967 ]\n})\n```\n\n## Usage\n\n[![NPM](https://nodei.co/npm/get-ports.png)](https://www.npmjs.com/package/get-ports)\n\n#### `getPorts(basePorts, [maxPort], callback)`\n\nFor the given array of `basePorts`, tries to find the next available port from each one. This keeps track of available ports to ensure there are no conflicts in the final result.\n\nIf the finite number `maxPort` is specified, the portfinding will fail when it reaches that maximum port. Defaults to 60000.\n\nThe callback is called with `(err, ports)`, where `err` will be an Error if any of the portfindings failed (i.e. no open ports within range). If successful, `err` will be null and `ports` will be an array, parallel to `basePorts`, with the found port numbers.\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/Jam3/get-ports/blob/master/LICENSE.md) for details.","users":{}}