@unavatar/core 3.19.5 → 3.19.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,15 +68,17 @@ It's proudly powered by [microlink.io](https://microlink.io/), the headless brow
|
|
|
68
68
|
|
|
69
69
|
The service is exposed in **unavatar.io** via provider endpoints:
|
|
70
70
|
|
|
71
|
-
- an **email**: [unavatar.io/
|
|
71
|
+
- an **email (auto-detect)**: [unavatar.io/hello@microlink.io](https://unavatar.io/hello@microlink.io) — tries Gravatar, then GitHub
|
|
72
|
+
- an **email** via Gravatar: [unavatar.io/gravatar/hello@microlink.io](https://unavatar.io/gravatar/hello@microlink.io)
|
|
73
|
+
- an **email** via GitHub: [unavatar.io/github/sindresorhus@gmail.com](https://unavatar.io/github/sindresorhus@gmail.com)
|
|
72
74
|
- an **username**: [unavatar.io/github/kikobeats](https://unavatar.io/github/kikobeats)
|
|
73
75
|
- a **domain**: [unavatar.io/google/reddit.com](https://unavatar.io/google/reddit.com)
|
|
74
76
|
|
|
75
|
-
Use
|
|
77
|
+
Use `/:provider/:key` for provider-specific lookups, or pass an email as the only path segment for automatic resolution. You can read more in [Email avatars](https://unavatar.io/email) and [providers](https://unavatar.io/docs#providers).
|
|
76
78
|
|
|
77
79
|
## Authentication
|
|
78
80
|
|
|
79
|
-
|
|
81
|
+
Anonymous requests work without authentication. They are limited to 25 requests/day per IP address.
|
|
80
82
|
|
|
81
83
|
For [PRO](https://unavatar.io/checkout) users, the requests must include the API key as the `x-api-key` request header:
|
|
82
84
|
|
|
@@ -269,7 +271,7 @@ You can pass `fallback=false` to explicitly disable this behavior. In this case,
|
|
|
269
271
|
|
|
270
272
|
The service returns media content by default.
|
|
271
273
|
|
|
272
|
-
This
|
|
274
|
+
This makes the service easier to consume directly from HTML markup.
|
|
273
275
|
|
|
274
276
|
In case you want to get a JSON payload as response, just pass `json=true`:
|
|
275
277
|
|
|
@@ -361,12 +363,13 @@ Available inputs:
|
|
|
361
363
|
|
|
362
364
|
### GitHub
|
|
363
365
|
|
|
364
|
-
Get any GitHub user or organization's profile picture by
|
|
366
|
+
Get any GitHub user or organization's profile picture by username, or resolve an avatar from a public email via GitHub search when the address matches a profile or commit history.
|
|
365
367
|
|
|
366
368
|
Available inputs:
|
|
367
369
|
|
|
368
370
|
- User, e.g., [unavatar.io/github/mdo](https://unavatar.io/github/mdo)
|
|
369
371
|
- Organization, e.g., [unavatar.io/github/vercel](https://unavatar.io/github/vercel)
|
|
372
|
+
- Email address, e.g., [unavatar.io/github/sindresorhus@gmail.com](https://unavatar.io/github/sindresorhus@gmail.com)
|
|
370
373
|
|
|
371
374
|
### GitLab
|
|
372
375
|
|
|
@@ -495,7 +498,7 @@ Get any PlayStation Network user's profile picture by their PSN username.
|
|
|
495
498
|
|
|
496
499
|
Available inputs:
|
|
497
500
|
|
|
498
|
-
- Username, e.g., [unavatar.io/psnprofiles/
|
|
501
|
+
- Username, e.g., [unavatar.io/psnprofiles/Duff85](https://unavatar.io/psnprofiles/Duff85)
|
|
499
502
|
|
|
500
503
|
### Reddit
|
|
501
504
|
|
|
@@ -644,7 +647,7 @@ Get any Xbox player's profile picture by their gamertag.
|
|
|
644
647
|
|
|
645
648
|
Available inputs:
|
|
646
649
|
|
|
647
|
-
- Gamertag, e.g., [unavatar.io/xboxgamertag/
|
|
650
|
+
- Gamertag, e.g., [unavatar.io/xboxgamertag/GD-BerserkerTTD](https://unavatar.io/xboxgamertag/GD-BerserkerTTD)
|
|
648
651
|
|
|
649
652
|
### YouTube
|
|
650
653
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@unavatar/core",
|
|
3
3
|
"description": "Get unified user avatar from social networks, including Instagram, SoundCloud, Telegram, Twitter, YouTube & more.",
|
|
4
4
|
"homepage": "https://unavatar.io",
|
|
5
|
-
"version": "3.19.
|
|
5
|
+
"version": "3.19.7",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": "./src/index.js",
|