![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@fictiv/gravatar-api
Advanced tools
Node module to build image and profile urls for gravatar.
gravatar-api makes it easy to build gravatar image and profile urls.
Using node package manager
npm install --save gravatar-api
Simply add the following require statement to import the module and then call the imageUrl method with the relevant options.
var gravatar = require('gravatar-api');
var options = {
email: 'test@gmail.com'
}
var avatar = gravatar.imageUrl(options);
You can also specify the size of the image with the following (or any valid gravatar image option)
var options = {
email: 'test@gmail.com',
parameters: { "size": "200" }
}
var avatar = gravatar.imageUrl(options);
A valid size is between 1 - 2048.
For more options, see gravatar documentation
You can specify retrieving the secure version of the URL by setting the secure
property to true
var options = {
email: 'test@gmail.com',
parameters: { "size": "200", "d": "mm" },
secure: true
}
var avatar = gravatar.imageUrl(options);
You can retrieve a user's gravatar profile url.
see the gravatar docs for more information on what parameters can be used for each type.
var options = {
email: 'test@gmail.com',
type: 'json', // Default: json,
// Available Types: 'json', 'xml', 'qr', 'php', 'vcf'
parameters: {'callback': 'doSomething' }, //optional
secure: true
}
var gravatarProfileUrl = gravatar.getProfileUrl(options);
FAQs
module to build image and profile urls for gravatar
We found that @fictiv/gravatar-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.