npm install
npm start
- Starts the server
npm test
- Calls the endpoints for testing
Expected result from the npm test
[ { hello: 'world' },
{ statusCode: 403, error: 'Forbidden', message: '🚫' },
'OK',
'OK' ]
// in your server after 2 sec
--- SLEEP AFTER 2S ---
--- SLEEP ERROR AFTER 3S ---
--- SLEEP AFTER 5S ---
--- SLEEP AFTER 10S ---
- Stars: 11.2k
- Contributors: 165
- Used by: 3.1k
- Latest Commit: 5 hours ago
- Requests per second: 76.8k
- Documentation Rating: 7/10
- How easy it was to implement: 7/10