node-portscan is a generic port scanner, not depending on any pre-written applications or code structures.It merely allows a developer to scan for the first free port and perform an action like starting a server on it, redirect users to it, etc..