# gravatar-url-simple

> Returns Gravatar URL

Latest version **1.0.12** (published 2021-11-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install gravatar-url-simple
pnpm add gravatar-url-simple
yarn add gravatar-url-simple
bun add gravatar-url-simple
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.12 |
| Published | 2021-11-15 |
| First published | 2021-11-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Shlemen Kirill |
| Maintainers | kirill_shlemen |

## Links

- npm: https://www.npmjs.com/package/gravatar-url-simple
- Repository: https://github.com/ShlemenKirill/Gravatar
- Homepage: https://github.com/ShlemenKirill/Gravatar#readme
- Issues: https://github.com/ShlemenKirill/Gravatar/issues
- npm.io page: https://npm.io/package/gravatar-url-simple

## Recent versions

- 1.0.12 (latest) — 2021-11-15
- 1.0.11 — 2021-11-04
- 1.0.10 — 2021-11-04
- 1.0.9 — 2021-11-04
- 1.0.8 — 2021-11-04
- 1.0.7 — 2021-11-04
- 1.0.6 — 2021-11-04
- 1.0.5 — 2021-11-04
- 1.0.4 — 2021-11-04
- 1.0.3 — 2021-11-04
- 1.0.2 — 2021-11-04
- 1.0.1 — 2021-11-04
- 1.0.0 — 2021-11-04

## README

# Gravatar

[![npm](https://img.shields.io/npm/v/gravatar-url-simple.svg)](https://www.npmjs.com/package/gravatar-url-simple)
[![NPM downloads](https://img.shields.io/npm/dm/gravatar-url-simple.svg)](https://www.npmjs.com/package/gravatar-url-simple)
[![License](https://img.shields.io/npm/l/gravatar-url-simple.svg)](https://www.npmjs.com/package/gravatar-url-simple)

Simple, lightweight npm package without external dependencies

### Install
```javascript
npm i gravatar-url-simple
```
### Import
```
import { gravatarURL } from "gravatar-url-simple";
```

## Simple usage:

```javascript
const email = "test@email.com"
const defaultImage = gravatarURL.gravatarTypes.IDENTICON
gravatarURL.getGravatarUrl(email, defaultImage)
```

### Default inage types:

```javascript
const gravatarTypes = {
  NOTFOUND: "404",
  MP: "mp",
  IDENTICON: "identicon",
  MONSTERID: "monsterid",
  WAVATAR: "wavatar",
  RETRO: "retro",
  ROBOHASH: "robohash",
  BLANK: "blank",
};
```


> 404: do not load any image if none is associated with the email hash, instead return an HTTP 404 (File Not Found) response
> 
> mp: (mystery-person) a simple, cartoon-style silhouetted outline of a person (does not vary by email hash)
> 
> identicon: a geometric pattern based on an email hash
> 
> monsterid: a generated 'monster' with different colors, faces, etc
> 
> wavatar: generated faces with differing features and backgrounds
> 
> retro: awesome generated, 8-bit arcade-style pixelated faces
> 
> robohash: a generated robot with different colors, faces, etc
> 
> blank: a transparent PNG image (border added to HTML below for demonstration purposes)

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