UNPKG

makemehapi

Version:

Self guided workshops to teach you about hapi.

32 lines (20 loc) 566 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 return a stream. ### 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 ```