Gathering detailed insights and metrics for react-awesome-gravatar
Gathering detailed insights and metrics for react-awesome-gravatar
Gathering detailed insights and metrics for react-awesome-gravatar
Gathering detailed insights and metrics for react-awesome-gravatar
npm install react-awesome-gravatar
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
7 Stars
29 Commits
1 Watchers
12 Branches
1 Contributors
Updated on Jun 04, 2022
Latest Version
2.0.3
Package Id
react-awesome-gravatar@2.0.3
Unpacked Size
97.80 kB
Size
22.79 kB
File Count
37
NPM Version
6.4.1
Node Version
10.13.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1npm install react-awesome-gravatar --save 2yarn add react-awesome-gravatar
1import Gravatar from 'react-awesome-gravatar'; 2 3<Gravatar email={email}> 4 { url => (<img src={url} />) } 5</Gravatar> 6// Should generate an <img /> tag with the correct gravatar profile url: https://www.gravatar.com/avatar/23463b99b62a72f26ed677cc556c44e8 7import { GravatarOptions } from 'react-awesome-gravatar'; 8const options: GravatarOptions = { 9 size: 50, 10}; // check below for all available options 11<Gravatar email="example@example.com" options={ options }> 12 { url => (<img src={url} />) } 13</Gravatar> 14// Should generate an <img /> tag with the correct gravatar profile url: https://www.gravatar.com/avatar/23463b99b62a72f26ed677cc556c44e8?size=50 15
If you just need the URL to the profile image of gravatar, you can omit the use of the component and call the function that the component calls directly.
1import { getGravatarUrl } from 'react-awesome-gravatar'; 2 3const profileUrl = getGravatarUrl('example@example.com'); 4// profileUrl has the profile url: https://www.gravatar.com/avatar/23463b99b62a72f26ed677cc556c44e8 5 6import { getGravatarUrl, GravatarOptions } from 'react-awesome-gravatar'; 7const options: GravatarOptions = { 8 size: 50, 9}; // check below for all available options 10 11const profileUrl = getGravatarUrl('example@example.com', options); 12// profileUrl has the profile url: https://www.gravatar.com/avatar/23463b99b62a72f26ed677cc556c44e8?size=50 13
1interface GravatarOptions { 2 size?: number; 3 default?: '404'|'mp'|'identicon'|'monsterid'|'wavatar'|'retro'|'robohash'|'blank'; 4 defaultUrl?: string; 5 forcedefault?: 'y'; 6 rating?: 'g'|'pg'|'r'|'x'; 7}
The options match 1:1 to the Gravatar API except for defaultUrl
which if present set the Gravatar default
to it.
1const options: GravatarOptions = { 2 defaultUrl: 'http://example.com/image.png', 3} 4const profileUrl = getGravatarUrl('example@example.com', options); 5// profileUrl has the profile url: https://www.gravatar.com/avatar/23463b99b62a72f26ed677cc556c44e8?default=http://example.com/image.png
Tests are configured with Jest, to run them use:
1npm run test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/22 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
42 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More