@sefinek/random-emoji 1.4.5 → 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 +3 -0
- package/README.md +8 -8
- package/README_PL.md +8 -8
- package/index.js +1 -1
- package/package.json +37 -37
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -33,14 +33,14 @@ 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
|
|
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
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
|
package/README_PL.md
CHANGED
|
@@ -33,14 +33,14 @@ 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
|
|
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
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
|
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.sefinek.net/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
|
+
}
|