UNPKG

makemehapi

Version:

Self guided workshops to teach you about hapi.

31 lines (19 loc) 598 B
Create a Hapi server which responds to GET requests to `/` by streaming a ROT13'd version of a file that contains: ``` The Pursuit of Hapi-ness ``` Output should look like: ``` Gur Chefhvg bs Uncv-arff ``` ----------------------------------------------------------------- ##HINTS ### Stream The Hapi handler `reply` function can accept a stream as an argument. ### File The `fs` module has a `createReadStream(pathToFile)` function that would be useful. ### Simple ROT13 In this exercise, we'll be using rot13-transform. To install rot13-transform: ```sh npm install rot13-transform ```