Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update hash algorithm to sha256 #12

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jgcaruso
Copy link

This PR updates the hashing algorithm to sha256 which is now supported by Gravatar.com

Testing

  1. pull pr
  2. run the following command to test the exported functions using your email address, and verify that the correct image is displayed in the browser
    • prints gravatar url node -e "var gravatar = require('./index.js'); console.log(gravatar.url('someemail@example.com'))"
    • prints a valid gravatar url with image size at 20px node -e "var gravatar = require('./index.js'); console.log(gravatar.url('someemail@example.com', {s: 20}))"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant