@sefinek/random-emoji 1.4.4 → 1.4.6
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/CHANGELOG.md +7 -1
- package/README.md +15 -15
- package/README_PL.md +17 -17
- package/index.js +1 -1
- package/package.json +37 -37
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## 📥・v1.4.6 (11.03.2023)
|
|
2
|
+
1. Updated to **v2** release of API.
|
|
3
|
+
|
|
4
|
+
## 📥・v1.4.5 (09.10.2022)
|
|
5
|
+
1. Fixed URLs.
|
|
6
|
+
|
|
1
7
|
## 📥・v1.4.4 (02.10.2022)
|
|
2
8
|
1. Fixed URLs.
|
|
3
9
|
|
|
@@ -19,7 +25,7 @@
|
|
|
19
25
|
|
|
20
26
|
## 📥・v1.3.0 (13.05.2022)
|
|
21
27
|
1. Updated README.md file.
|
|
22
|
-
2. Added `new kaomojis()` with random kaomoji from my [API](https://api
|
|
28
|
+
2. Added `new kaomojis()` with random kaomoji from my [API](https://api.sefinek.net). See examples: [[1](https://github.com/sefinek24/random-emoji/blob/main/test.js)] [[2](https://github.com/sefinek24/random-emoji#%EF%B8%8F--kaomojis)]
|
|
23
29
|
3. Other changes to [index.js](https://github.com/sefinek24/random-emoji/blob/main/index.js) file.
|
|
24
30
|
|
|
25
31
|
## 📥・v1.2.0 (12.05.2022)
|
package/README.md
CHANGED
|
@@ -33,15 +33,15 @@ console.log(`Name: ${cat.name}; Emoji: ${cat.content};`);
|
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
## 😻 • Usage
|
|
36
|
-
| Function | Description
|
|
37
|
-
|
|
38
|
-
| [unicode](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L3) | A single emote
|
|
39
|
-
| [emojis](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L6) | Random emoji with name and type
|
|
40
|
-
| [cats](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L10) | Return random cat
|
|
41
|
-
| [hearts](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L14) | Return random heart
|
|
42
|
-
| [foods](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L18) | Return random food
|
|
43
|
-
| [circles](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L22) | Return random circle
|
|
44
|
-
| [kaomojis](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L26) | Return random kaomojis from [API](https://api
|
|
36
|
+
| Function | Description |
|
|
37
|
+
|-----------------------------------------------------------------------------------------------------------------|------------------------------------------------------------|
|
|
38
|
+
| [unicode](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L3) | A single emote |
|
|
39
|
+
| [emojis](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L6) | Random emoji with name and type |
|
|
40
|
+
| [cats](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L10) | Return random cat |
|
|
41
|
+
| [hearts](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L14) | Return random heart |
|
|
42
|
+
| [foods](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L18) | Return random food |
|
|
43
|
+
| [circles](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L22) | Return random circle |
|
|
44
|
+
| [kaomojis](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L26) | Return random kaomojis from [API](https://api.sefinek.net) |
|
|
45
45
|
|
|
46
46
|
## ⛩️ • Kaomoji
|
|
47
47
|
### » Async/await example
|
|
@@ -64,7 +64,7 @@ const kaomoji = new random.kaomojis();
|
|
|
64
64
|
kaomoji.love().then(data => console.log(data));
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
### » The returned object from [API](https://api
|
|
67
|
+
### » The returned object from [API](https://api.sefinek.net)
|
|
68
68
|
```json
|
|
69
69
|
{
|
|
70
70
|
"success": true,
|
|
@@ -78,11 +78,11 @@ kaomoji.love().then(data => console.log(data));
|
|
|
78
78
|
### » Kaomoji endpoints
|
|
79
79
|
| Function | Example |
|
|
80
80
|
|-------------------------------------------------------|-----------|
|
|
81
|
-
| [cat](https://api
|
|
82
|
-
| [dog](https://api
|
|
83
|
-
| [owo](https://api
|
|
84
|
-
| [uwu](https://api
|
|
85
|
-
| [love](https://api
|
|
81
|
+
| [cat](https://api.sefinek.net/api/v1/kaomoji/cat) | (=^-ω-^=) |
|
|
82
|
+
| [dog](https://api.sefinek.net/api/v1/kaomoji/dog) | ଘ(∪・ﻌ・∪)ଓ |
|
|
83
|
+
| [owo](https://api.sefinek.net/api/v1/kaomoji/owo) | 𝓞𝔀𝓞 |
|
|
84
|
+
| [uwu](https://api.sefinek.net/api/v1/kaomoji/uwu) | 𝕌𝕨𝕌 |
|
|
85
|
+
| [love](https://api.sefinek.net/api/v1/kaomoji/love) | ヽ(♡‿♡)ノ |
|
|
86
86
|
|
|
87
87
|
## 📝 • Changelog
|
|
88
88
|
> https://github.com/sefinek24/random-emoji/blob/main/CHANGELOG.md
|
package/README_PL.md
CHANGED
|
@@ -33,15 +33,15 @@ console.log(`Nazwa: ${cat.name}; Emoji: ${cat.content};`);
|
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
## 😻 • Użycie
|
|
36
|
-
| Funkcja | Opis
|
|
37
|
-
|
|
38
|
-
| [unicode](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L3) | Pojedyncza emotikona
|
|
39
|
-
| [emojis](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L6) | Losowe emoji z nazwą i typem
|
|
40
|
-
| [cats](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L10) | Zwraca losowego kota
|
|
41
|
-
| [hearts](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L14) | Zwraca losowe serce
|
|
42
|
-
| [foods](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L18) | Zwraca losowe jedzenie
|
|
43
|
-
| [circles](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L22) | Zwraca losowe kółko
|
|
44
|
-
| [kaomojis](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L26) | Zwraca losowe kaomoji z [API](https://api
|
|
36
|
+
| Funkcja | Opis |
|
|
37
|
+
|-----------------------------------------------------------------------------------------------------------------|--------------------------------------------------------|
|
|
38
|
+
| [unicode](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L3) | Pojedyncza emotikona |
|
|
39
|
+
| [emojis](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L6) | Losowe emoji z nazwą i typem |
|
|
40
|
+
| [cats](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L10) | Zwraca losowego kota |
|
|
41
|
+
| [hearts](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L14) | Zwraca losowe serce |
|
|
42
|
+
| [foods](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L18) | Zwraca losowe jedzenie |
|
|
43
|
+
| [circles](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L22) | Zwraca losowe kółko |
|
|
44
|
+
| [kaomojis](https://github.com/sefinek24/random-emoji/blob/ab58b364710a4c7106721808e81ccdc7590c4965/test.js#L26) | Zwraca losowe kaomoji z [API](https://api.sefinek.net) |
|
|
45
45
|
|
|
46
46
|
## ⛩️ • Kaomoji
|
|
47
47
|
### » Przykład Async/await
|
|
@@ -64,7 +64,7 @@ const kaomoji = new random.kaomojis();
|
|
|
64
64
|
kaomoji.love().then(data => console.log(data));
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
### » Zwrócony obiekt przez [API](https://api
|
|
67
|
+
### » Zwrócony obiekt przez [API](https://api.sefinek.net)
|
|
68
68
|
```json
|
|
69
69
|
{
|
|
70
70
|
"success": true,
|
|
@@ -76,13 +76,13 @@ kaomoji.love().then(data => console.log(data));
|
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
### » Punkty końcowe dla Kaomoji
|
|
79
|
-
| Function
|
|
80
|
-
|
|
81
|
-
| [cat](https://api
|
|
82
|
-
| [dog](https://api
|
|
83
|
-
| [owo](https://api
|
|
84
|
-
| [uwu](https://api
|
|
85
|
-
| [love](https://api
|
|
79
|
+
| Function | Example |
|
|
80
|
+
|-----------------------------------------------------|-----------|
|
|
81
|
+
| [cat](https://api.sefinek.net/api/v1/kaomoji/cat) | (=^-ω-^=) |
|
|
82
|
+
| [dog](https://api.sefinek.net/api/v1/kaomoji/dog) | ଘ(∪・ﻌ・∪)ଓ |
|
|
83
|
+
| [owo](https://api.sefinek.net/api/v1/kaomoji/owo) | 𝓞𝔀𝓞 |
|
|
84
|
+
| [uwu](https://api.sefinek.net/api/v1/kaomoji/uwu) | 𝕌𝕨𝕌 |
|
|
85
|
+
| [love](https://api.sefinek.net/api/v1/kaomoji/love) | ヽ(♡‿♡)ノ |
|
|
86
86
|
|
|
87
87
|
## 📝 • Lista zmian
|
|
88
88
|
> https://github.com/sefinek24/random-emoji/blob/main/CHANGELOG.md
|
package/index.js
CHANGED
|
@@ -31,7 +31,7 @@ function getContent(url) {
|
|
|
31
31
|
class SkiffyAPI {
|
|
32
32
|
constructor() {
|
|
33
33
|
Object.keys(endpoints).forEach(endpoint => {
|
|
34
|
-
this[endpoint] = () => getContent(`https://api
|
|
34
|
+
this[endpoint] = () => getContent(`https://api.sefinek.net/api/v2/random/${endpoints[endpoint]}`);
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
}
|
package/package.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@sefinek/random-emoji",
|
|
3
|
-
"version": "1.4.
|
|
4
|
-
"description": "Returns a random emoticons (name, type) and kaomojis.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "node test.js"
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/sefinek24/random-emoji.git"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"random",
|
|
15
|
-
"emoji",
|
|
16
|
-
"emojis",
|
|
17
|
-
"emoticon",
|
|
18
|
-
"unicode",
|
|
19
|
-
"cat",
|
|
20
|
-
"cats",
|
|
21
|
-
"heart",
|
|
22
|
-
"hearts",
|
|
23
|
-
"food",
|
|
24
|
-
"foods",
|
|
25
|
-
"circle",
|
|
26
|
-
"circles",
|
|
27
|
-
"name",
|
|
28
|
-
"type"
|
|
29
|
-
],
|
|
30
|
-
"author": "Sefinek
|
|
31
|
-
"license": "MIT",
|
|
32
|
-
"bugs": {
|
|
33
|
-
"url": "https://github.com/sefinek24/random-emoji/issues"
|
|
34
|
-
},
|
|
35
|
-
"homepage": "https://github.com/sefinek24/random-emoji#readme",
|
|
36
|
-
"types": "./index.d.ts"
|
|
37
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@sefinek/random-emoji",
|
|
3
|
+
"version": "1.4.6",
|
|
4
|
+
"description": "Returns a random emoticons (name, type) and kaomojis.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "node test.js"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/sefinek24/random-emoji.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"random",
|
|
15
|
+
"emoji",
|
|
16
|
+
"emojis",
|
|
17
|
+
"emoticon",
|
|
18
|
+
"unicode",
|
|
19
|
+
"cat",
|
|
20
|
+
"cats",
|
|
21
|
+
"heart",
|
|
22
|
+
"hearts",
|
|
23
|
+
"food",
|
|
24
|
+
"foods",
|
|
25
|
+
"circle",
|
|
26
|
+
"circles",
|
|
27
|
+
"name",
|
|
28
|
+
"type"
|
|
29
|
+
],
|
|
30
|
+
"author": "Sefinek (https://sefinek.net)",
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/sefinek24/random-emoji/issues"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/sefinek24/random-emoji#readme",
|
|
36
|
+
"types": "./index.d.ts"
|
|
37
|
+
}
|