@unavatar/core 3.37.0 → 3.38.0

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 CHANGED
@@ -24,7 +24,6 @@
24
24
  - [Buy Me a Coffee](#buy-me-a-coffee)
25
25
  - [CodePen](#codepen)
26
26
  - [Cults3D](#cults3d)
27
- - [Cursor](#cursor)
28
27
  - [DeviantArt](#deviantart)
29
28
  - [Discord](#discord)
30
29
  - [Docker Hub](#docker-hub)
@@ -52,17 +51,15 @@
52
51
  - [Patreon](#patreon)
53
52
  - [Pinterest](#pinterest)
54
53
  - [Printables](#printables)
55
- - [Primal](#primal)
56
54
  - [Product Hunt](#product-hunt)
57
55
  - [PSN Profiles](#psn-profiles)
58
- - [Raycast](#raycast)
59
56
  - [Reddit](#reddit)
57
+ - [Revolut](#revolut)
60
58
  - [Snapchat](#snapchat)
61
59
  - [SoundCloud](#soundcloud)
62
60
  - [Spotify](#spotify)
63
61
  - [Stack Overflow](#stack-overflow)
64
62
  - [Steam](#steam)
65
- - [Strava](#strava)
66
63
  - [Substack](#substack)
67
64
  - [Telegram](#telegram)
68
65
  - [Thingiverse](#thingiverse)
@@ -92,7 +89,7 @@ Welcome to **unavatar.io**, the ultimate avatar service that offers everything y
92
89
 
93
90
  - **Versatile**: A wide range of platforms and services including [TikTok](https://unavatar.io/docs#tiktok), [Instagram](https://unavatar.io/docs#instagram), [YouTube](https://unavatar.io/docs#youtube), [X/Twitter](https://unavatar.io/docs#xtwitter), [Gravatar](https://unavatar.io/docs#gravatar), etc., meaning you can rule all of them just querying against unavatar.
94
91
 
95
- - **Speed**: Designed to be fast and efficient with a 91% cache hit rate, serving 12.5 TB of data across 382M requests.
92
+ - **Speed**: Designed to be fast and efficient with a 92% cache hit rate, serving 9.59 TB of data across 258.5M requests.
96
93
 
97
94
  - **Optimize**: All the images are not only compressed on-the-fly to reduce their size and save bandwidth, but also optimized to maintain a high-quality ratio. They are ready for immediate use, enhancing the overall optimization of your website or application.
98
95
 
@@ -588,12 +585,6 @@ Get any Cults3D creator's profile picture by username.
588
585
 
589
586
  e.g., [unavatar.io/cults3d/RaBros](https://unavatar.io/cults3d/RaBros)
590
587
 
591
- ### Cursor
592
-
593
- Get any Cursor user's profile picture by their username.
594
-
595
- e.g., [unavatar.io/cursor/eric](https://unavatar.io/cursor/eric)
596
-
597
588
  ### DeviantArt
598
589
 
599
590
  Get any DeviantArt user's profile picture by their username.
@@ -663,7 +654,6 @@ Available inputs:
663
654
 
664
655
  - Username, e.g., [unavatar.io/facebook/zuck](https://unavatar.io/facebook/zuck)
665
656
  - Page, e.g., [unavatar.io/facebook/windtodayco](https://unavatar.io/facebook/windtodayco)
666
- - Group ID, e.g., [unavatar.io/facebook/1426378481098002](https://unavatar.io/facebook/1426378481098002)
667
657
 
668
658
  ### Flickr
669
659
 
@@ -819,12 +809,6 @@ Get any Printables user's profile picture by their username.
819
809
 
820
810
  e.g., [unavatar.io/printables/DukeDoks](https://unavatar.io/printables/DukeDoks)
821
811
 
822
- ### Primal
823
-
824
- Get any Primal user's profile picture by their username.
825
-
826
- e.g., [unavatar.io/primal/jack](https://unavatar.io/primal/jack)
827
-
828
812
  ### Product Hunt
829
813
 
830
814
  Get profile pictures for Product Hunt users or logos for Product Hunt products.
@@ -844,12 +828,6 @@ Get any PlayStation Network user's profile picture by their PSN username.
844
828
 
845
829
  e.g., [unavatar.io/psnprofiles/Duff85](https://unavatar.io/psnprofiles/Duff85)
846
830
 
847
- ### Raycast
848
-
849
- Get any Raycast user's profile picture by their username.
850
-
851
- e.g., [unavatar.io/raycast/kikobeats](https://unavatar.io/raycast/kikobeats)
852
-
853
831
  ### Reddit
854
832
 
855
833
  Get any Reddit user's avatar by their username.
@@ -859,6 +837,12 @@ Available inputs:
859
837
  - Username, e.g., [unavatar.io/reddit/thisisbillgates](https://unavatar.io/reddit/thisisbillgates)
860
838
  - Organization, e.g., [unavatar.io/reddit/nasa](https://unavatar.io/reddit/nasa)
861
839
 
840
+ ### Revolut
841
+
842
+ Get any Revolut user's profile picture by their Revolut.Me username.
843
+
844
+ e.g., [unavatar.io/revolut/midudev](https://unavatar.io/revolut/midudev)
845
+
862
846
  ### Snapchat
863
847
 
864
848
  Get any Snapchat user's profile picture by their username.
@@ -909,12 +893,6 @@ Available inputs:
909
893
  - `profile`: [unavatar.io/steam/profile:76561198044605749](https://unavatar.io/steam/profile:76561198044605749)
910
894
  - `group`: [unavatar.io/steam/group:murcia-gaming](https://unavatar.io/steam/group:murcia-gaming)
911
895
 
912
- ### Strava
913
-
914
- Get any Strava athlete's profile picture by their username or athlete ID.
915
-
916
- e.g., [unavatar.io/strava/kikobeats](https://unavatar.io/strava/kikobeats)
917
-
918
896
  ### Substack
919
897
 
920
898
  Get any Substack author's profile picture by their publication username.
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.37.0",
5
+ "version": "3.38.0",
6
6
  "main": "src/index.js",
7
7
  "exports": {
8
8
  ".": "./src/index.js",
@@ -128,12 +128,12 @@
128
128
  "@metascraper/helpers": "~5.50.0",
129
129
  "@microlink/mql": "~0.16.0",
130
130
  "@microlink/ping-url": "~1.4.16",
131
- "browserless": "~13.0.0",
131
+ "browserless": "~13.1.0",
132
132
  "cacheable-lookup": "~6.1.0",
133
133
  "data-uri-regex": "~0.1.4",
134
134
  "debug-logfmt": "~1.4.10",
135
135
  "got": "~11.8.6",
136
- "html-get": "~2.22.2",
136
+ "html-get": "~2.24.3",
137
137
  "https-tls": "~1.0.24",
138
138
  "ipaddr.js": "~2.4.0",
139
139
  "is-absolute-url": "~3.0.3",
@@ -38,6 +38,7 @@ const providersBy = {
38
38
  'psnprofiles',
39
39
  'raycast',
40
40
  'reddit',
41
+ 'revolut',
41
42
  'snapchat',
42
43
  'soundcloud',
43
44
  'spotify',
@@ -100,6 +101,7 @@ module.exports = ctx => {
100
101
  psnprofiles: require('./psnprofiles')(ctx),
101
102
  raycast: require('./raycast')(ctx),
102
103
  reddit: require('./reddit')(ctx),
104
+ revolut: require('./revolut')(ctx),
103
105
  snapchat: require('./snapchat')(ctx),
104
106
  soundcloud: require('./soundcloud')(ctx),
105
107
  spotify: require('./spotify')(ctx),
@@ -0,0 +1,11 @@
1
+ 'use strict'
2
+
3
+ const getAvatarUrl = input =>
4
+ `https://revolut.me/api/web-profile/${input}/picture`
5
+
6
+ module.exports = () =>
7
+ function revolut (input) {
8
+ return getAvatarUrl(input)
9
+ }
10
+
11
+ module.exports.getAvatarUrl = getAvatarUrl