dwyl / hapi-redis-connection

:rocket: Register once and use Redis anywhere in your Hapi application/route handlers.
10 stars 3 forks source link

what is `pkg: pkg` meaning? #4

Closed TangMonk closed 1 year ago

TangMonk commented 7 years ago

in code https://github.com/dwyl/hapi-redis-connection/blob/master/index.js#L22

nelsonic commented 7 years ago

Hi @TangMonk, thank you for your question! (and welcome to DWYL!) the pkg is simply a way to export the data in package.json which we require on line 1: https://github.com/dwyl/hapi-redis-connection/blob/f40a082426a30baa9fc6721655bf0d50c02cdf1a/index.js#L1

Please see: https://hapijs.com/tutorials/plugins#creating-a-plugin And if you have any further hapi-related questions, please ask: https://github.com/dwyl/learn-hapi/issues thanks!