# @types/gravatar

> TypeScript definitions for gravatar

Latest version **1.8.6** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/gravatar
pnpm add @types/gravatar
yarn add @types/gravatar
bun add @types/gravatar
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.8.6 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51434 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/gravatar
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gravatar
- npm.io page: https://npm.io/package/@types/gravatar

## Recent versions

- 1.8.6 (latest) — 2023-11-07
- 1.8.3 (ts3.6) — 2021-07-08
- 1.8.1 (ts2.8) — 2020-03-05
- 1.8.0 (ts2.0) — 2019-03-15
- 1.8.5 — 2023-10-18
- 1.8.4 — 2023-09-20
- 1.8.2 — 2021-06-12
- 1.4.28 — 2016-09-19
- 1.4.27 — 2016-07-14
- 1.4.26-alpha — 2016-07-08
- 1.4.25-alpha — 2016-07-04
- 1.4.24-alpha — 2016-07-02
- 1.4.23-alpha — 2016-07-01
- 1.4.22-alpha — 2016-07-01
- 1.4.21-alpha — 2016-05-25
- … 3 more at https://npm.io/package/@types/gravatar/versions

## README

# Installation
> `npm install --save @types/gravatar`

# Summary
This package contains type definitions for gravatar (https://github.com/emerleite/node-gravatar).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gravatar.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gravatar/index.d.ts)
````ts
export type Protocol = false | "http" | true | "https";

export interface Options {
    cdn?: string | undefined;
    d?: string | undefined;
    default?: string | undefined;
    f?: string | undefined;
    forcedefault?: string | undefined;
    format?: string | undefined;
    protocol?: Protocol | undefined;
    r?: string | undefined;
    rating?: string | undefined;
    s?: string | undefined;
    size?: string | undefined;
}

/**
 * @param email - The gravatar email
 * @param [options] - Query string options
 * @param [protocol] - Define if will use no protocol, http or https gravatar URL.
 * Default is 'undefined', which generates URLs without protocol.
 * True to force https and false to force http
 */
export function url(email: string, options?: Options, protocol?: boolean): string;
/**
 * @param email - The gravatar email
 * @param [options] - Query string options
 * @param [protocol] - Define if will use no protocol, http or https gravatar URL.
 * Default is 'undefined', which generates URLs without protocol.
 * True to force https and false to force http
 */
export function profile_url(email: string, options?: Options, protocol?: boolean): string;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by [Denis Sokolov](https://github.com/denis-sokolov), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).

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