gabrielcsapo / node-git-server

🎡 A configurable git server written in Node.js
https://gabrielcsapo.github.io/node-git-server
MIT License
253 stars 73 forks source link

Add return value to listen method #43

Closed mojavelinux closed 5 years ago

mojavelinux commented 5 years ago

If the listen method returned the current instance, it could be used in a way that's consistent with the http createServer API.

const repos = new GitServer('repos').listen(0)

Currently, this is not possible since the listen method does not return a value.