# gravatarjs

> Gravatar in the browser

Latest version **1.0.1** (published 2015-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install gravatarjs
pnpm add gravatarjs
yarn add gravatarjs
bun add gravatarjs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-08-27 |
| First published | 2015-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | mazondo |
| Maintainers | matthewp |
| Keywords | gravatar |

## Links

- npm: https://www.npmjs.com/package/gravatarjs
- Repository: https://github.com/matthewp/gravatarjs
- Issues: https://github.com/matthewp/gravatarjs/issues
- npm.io page: https://npm.io/package/gravatarjs

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-08-27

## README

# Gravatar
Yet another library for generating gravatar urls.

## Why?
Because the other ones depend on jQuery or make assumptions I don't want like returning an image tag instead of a url.

## Usage
gravatarjs is based on the standard Gravatar API, learn more here: https://en.gravatar.com/site/implement/images/

### Generate a gravatar url
```
gravatar("me@me.com");
```

### Specify options
 - size: Size of the image (Default 50)
 - rating: Rating of the image (Default 'g', Options: g, pg, r, x)
 - secure: Use https or http (Default false)
 - backup: Backup image if gravatar doesn't exist (Default: default)
 - - You can see backup options here: https://en.gravatar.com/site/implement/images/

```
gravatar("me@me.com", {size: 200, rating: "pg", backup: "retro", secure: true});
```

---
_Source: https://npm.io/package/gravatarjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
