Express Listen One
Tiny function for listening to a single request with express.
Useful for catching a request when testing, when dealing with redirects to localhosts etc.
Install
npm install --save express-listen-one
Usage
; // Maybe during testing... ; assert result === true ; // Maybe when dealing with redirects to localhost... ; request 'https://connect.deezer.com/oauth/auth.php?redirect_uri=http://localhost.com:3333' ; // Adding `127.0.0.1 localhost.com` to /etc/hosts is pretty useful btw ;
License
MIT © Fabio Spampinato