@unavatar/core 3.37.1 → 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
@@ -54,6 +54,7 @@
54
54
  - [Product Hunt](#product-hunt)
55
55
  - [PSN Profiles](#psn-profiles)
56
56
  - [Reddit](#reddit)
57
+ - [Revolut](#revolut)
57
58
  - [Snapchat](#snapchat)
58
59
  - [SoundCloud](#soundcloud)
59
60
  - [Spotify](#spotify)
@@ -836,6 +837,12 @@ Available inputs:
836
837
  - Username, e.g., [unavatar.io/reddit/thisisbillgates](https://unavatar.io/reddit/thisisbillgates)
837
838
  - Organization, e.g., [unavatar.io/reddit/nasa](https://unavatar.io/reddit/nasa)
838
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
+
839
846
  ### Snapchat
840
847
 
841
848
  Get any Snapchat user's profile picture by their 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.1",
5
+ "version": "3.38.0",
6
6
  "main": "src/index.js",
7
7
  "exports": {
8
8
  ".": "./src/index.js",
@@ -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