@unavatar/core 3.13.0 → 3.14.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
@@ -10,6 +10,7 @@
10
10
  - [Pricing](#pricing)
11
11
  - [Providers](#providers)
12
12
  - [Apple Music](#apple-music)
13
+ - [Behance](#behance)
13
14
  - [Bluesky](#bluesky)
14
15
  - [DeviantArt](#deviantart)
15
16
  - [Discord](#discord)
@@ -56,6 +57,7 @@
56
57
  - [Pricing](#pricing)
57
58
  - [Providers](#providers)
58
59
  - [Apple Music](#apple-music)
60
+ - [Behance](#behance)
59
61
  - [Bluesky](#bluesky)
60
62
  - [DeviantArt](#deviantart)
61
63
  - [Discord](#discord)
@@ -223,6 +225,14 @@ Available URI format inputs:
223
225
  - by song name: [unavatar.io/apple-music/song:harder%20better%20faster%20stronger](https://unavatar.io/apple-music/song:harder%20better%20faster%20stronger)
224
226
  - by song ID: [unavatar.io/apple-music/song:697195787](https://unavatar.io/apple-music/song:697195787)
225
227
 
228
+ ### Behance
229
+
230
+ Get any Behance user's profile picture by their username.
231
+
232
+ Available inputs:
233
+
234
+ - slug, e.g., [unavatar.io/behance/kikobeats](https://unavatar.io/behance/kikobeats)
235
+
226
236
  ### Bluesky
227
237
 
228
238
  Get any Bluesky user's profile picture by their handle. Domain-style handles are supported.
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.13.0",
5
+ "version": "3.14.0",
6
6
  "main": "src/index.js",
7
7
  "exports": {
8
8
  ".": "./src/index.js",
@@ -0,0 +1,12 @@
1
+ 'use strict'
2
+
3
+ const getAvatarUrl = input => `https://www.behance.net/${input}`
4
+
5
+ module.exports = ({ createHtmlProvider, getOgImage }) =>
6
+ createHtmlProvider({
7
+ name: 'behance',
8
+ url: getAvatarUrl,
9
+ getter: getOgImage
10
+ })
11
+
12
+ module.exports.getAvatarUrl = getAvatarUrl
@@ -4,6 +4,7 @@ const providersBy = {
4
4
  email: ['gravatar'],
5
5
  username: [
6
6
  'apple-music',
7
+ 'behance',
7
8
  'bluesky',
8
9
  'deviantart',
9
10
  'discord',
@@ -39,6 +40,7 @@ const providersBy = {
39
40
  module.exports = ctx => {
40
41
  const providers = {
41
42
  'apple-music': require('./apple-music')(ctx),
43
+ behance: require('./behance')(ctx),
42
44
  bluesky: require('./bluesky')(ctx),
43
45
  deviantart: require('./deviantart')(ctx),
44
46
  discord: require('./discord')(ctx),