Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.141.164.253
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
portfinder /
Delete
Unzip
Name
Size
Permission
Date
Action
lib
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
node_modules
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
LICENSE
1.05
KB
-rw-r--r--
1985-10-26 08:15
README.md
1.65
KB
-rw-r--r--
1985-10-26 08:15
package.json
1.68
KB
-rw-r--r--
2021-02-04 21:24
Save
Rename
# node-portfinder [](https://travis-ci.org/indexzero/node-portfinder) ## Installation ``` bash $ [sudo] npm install portfinder ``` ## Usage The `portfinder` module has a simple interface: ``` js var portfinder = require('portfinder'); portfinder.getPort(function (err, port) { // // `port` is guaranteed to be a free port // in this scope. // }); ``` Or with promise (if Promise are supported) : ``` js const portfinder = require('portfinder'); portfinder.getPortPromise() .then((port) => { // // `port` is guaranteed to be a free port // in this scope. // }) .catch((err) => { // // Could not get a free port, `err` contains the reason. // }); ``` If `portfinder.getPortPromise()` is called on a Node version without Promise (<4), it will throw an Error unless [Bluebird](http://bluebirdjs.com/docs/getting-started.html) or any Promise pollyfill is used. ### Ports search scope By default `portfinder` will start searching from `8000` and scan until maximum port number (`65535`) is reached. You can change this globally by setting: ```js portfinder.basePort = 3000; // default: 8000 portfinder.highestPort = 3333; // default: 65535 ``` or by passing optional options object on each invocation: ```js portfinder.getPort({ port: 3000, // minimum port stopPort: 3333 // maximum port }, callback); ``` ## Run Tests ``` bash $ npm test ``` #### Author: [Charlie Robbins][0] #### Maintainer: [Erik Trom][1] #### License: MIT/X11 [0]: http://nodejitsu.com [1]: https://github.com/eriktrom