menu

JS Everywhere

A community for the JavaScript Everywhere book by Adam Scott, published by O'Reilly.

Channels
Team

Doubt about using gravatar - CH 7

May 13, 2020 at 4:53am

Doubt about using gravatar - CH 7

May 13, 2020 at 4:53am
Hi ! I just start to read your book, I've learned a lot!
In chapter #7 you use a gravatar library. My question is: why not to use gravatar package in npm? What are the disavantages of use npm package gravatar (https://www.npmjs.com/package/gravatar) against the library provided in the project?
Thanks in advance! Regards

May 13, 2020 at 11:30am
Hi , I'm glad to hear that you're enjoying the book! My reasoning was a combination of an attempt to limit dependencies that I don't cover in the book and that it's only a few lines of code. I just took a look at the npm gravatar package's code and it's great (and more robust than my simple library) - I'd say, use away!
like-fill
2
  • reply
  • like

May 13, 2020 at 7:39pm
Hi , I'm glad to hear that you're enjoying the book! My reasoning was a combination of an attempt to limit dependencies that I don't cover in the book and that it's only a few lines of code. I just took a look at the npm gravatar package's code and it's great (and more robust than my simple library) - I'd say, use away!
Thanks for your answer!
  • reply
  • like