# avatar-image

> Get avater image from gravatar using email address.

Latest version **1.0.1** (published 2019-10-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install avatar-image
pnpm add avatar-image
yarn add avatar-image
bun add avatar-image
```

## 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 | 2019-10-19 |
| First published | 2019-10-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 18.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | xaaman |
| Keywords | gravatar, gravatar-image, image, get avatar from mail, avatar-image, from, mail, image from mail |

## Links

- npm: https://www.npmjs.com/package/avatar-image
- Repository: https://github.com/hasanuzzamanbe/avatar-image
- Homepage: https://github.com/hasanuzzamanbe/avatar-image#readme
- Issues: https://github.com/hasanuzzamanbe/avatar-image/issues
- npm.io page: https://npm.io/package/avatar-image

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-10-19
- 1.0.0 — 2019-10-19

## README

# avatar-image (get gravatar by email)
Get the gravatar image by email address with specefic size.

## Usages
Install the latest version:

```npm i avatar-image```

Require the module in your code & start using:

```const avatar = require('avatar-image');```

# Documentation
#### How to use on your template:

It's very easy to use, It will give you generated link from your email address with a default size of 80 px. 

`avatar(email, size)` this function allows you to use two pass email and size.

after import just use anywhere from your file like this:
##### example (For specefic image size like 128 px):
`var imgLink = avatar('youremail@example.com', 128)`

`<img src='imgLink'`/>

##### example(by default it will give you 80 px image src link):
`var imgLink = avatar('youremail@example.com')`

`<img src='imgLink'`/>

#support & suggestion:

If you face any issue with this package please let us know about it by creating an issue on Github.
Any kind of suggestion will be appreciated.

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