narrow-emojis 0.0.2 → 0.0.3
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/index.js +14 -24
- package/package.json +1 -1
- package/readme.md +3 -3
package/index.js
CHANGED
|
@@ -38,7 +38,6 @@ export const narrowEmojiCharacters = [
|
|
|
38
38
|
/* 260E */ '☎', // (1.1) BLACK TELEPHONE
|
|
39
39
|
/* 2611 */ '☑', // (1.1) BALLOT BOX WITH CHECK
|
|
40
40
|
/* 2618 */ '☘', // (4.1) SHAMROCK
|
|
41
|
-
/* 261D */ '☝', // (1.1) WHITE UP POINTING INDEX
|
|
42
41
|
/* 2620 */ '☠', // (1.1) SKULL AND CROSSBONES
|
|
43
42
|
/* 2622 */ '☢', // (1.1) RADIOACTIVE SIGN
|
|
44
43
|
/* 2623 */ '☣', // (1.1) BIOHAZARD SIGN
|
|
@@ -81,12 +80,9 @@ export const narrowEmojiCharacters = [
|
|
|
81
80
|
/* 26F4 */ '⛴', // (5.2) FERRY
|
|
82
81
|
/* 26F7 */ '⛷', // (5.2) SKIER
|
|
83
82
|
/* 26F8 */ '⛸', // (5.2) ICE SKATE
|
|
84
|
-
/* 26F9 */ '⛹', // (5.2) PERSON WITH BALL
|
|
85
83
|
/* 2702 */ '✂', // (1.1) BLACK SCISSORS
|
|
86
84
|
/* 2708 */ '✈', // (1.1) AIRPLANE
|
|
87
85
|
/* 2709 */ '✉', // (1.1) ENVELOPE
|
|
88
|
-
/* 270C */ '✌', // (1.1) VICTORY HAND
|
|
89
|
-
/* 270D */ '✍', // (1.1) WRITING HAND
|
|
90
86
|
/* 270F */ '✏', // (1.1) PENCIL
|
|
91
87
|
/* 2712 */ '✒', // (1.1) BLACK NIB
|
|
92
88
|
/* 2714 */ '✔', // (1.1) HEAVY CHECK MARK
|
|
@@ -128,8 +124,6 @@ export const narrowEmojiCharacters = [
|
|
|
128
124
|
/* 1F39B */ '🎛', // (7.0) CONTROL KNOBS
|
|
129
125
|
/* 1F39E */ '🎞', // (7.0) FILM FRAMES
|
|
130
126
|
/* 1F39F */ '🎟', // (7.0) ADMISSION TICKETS
|
|
131
|
-
/* 1F3CB */ '🏋', // (7.0) WEIGHT LIFTER
|
|
132
|
-
/* 1F3CC */ '🏌', // (7.0) GOLFER
|
|
133
127
|
/* 1F3CD */ '🏍', // (7.0) RACING MOTORCYCLE
|
|
134
128
|
/* 1F3CE */ '🏎', // (7.0) RACING CAR
|
|
135
129
|
/* 1F3D4 */ '🏔', // (7.0) SNOW CAPPED MOUNTAIN
|
|
@@ -155,8 +149,6 @@ export const narrowEmojiCharacters = [
|
|
|
155
149
|
/* 1F56F */ '🕯', // (7.0) CANDLE
|
|
156
150
|
/* 1F570 */ '🕰', // (7.0) MANTELPIECE CLOCK
|
|
157
151
|
/* 1F573 */ '🕳', // (7.0) HOLE
|
|
158
|
-
/* 1F574 */ '🕴', // (7.0) MAN IN BUSINESS SUIT LEVITATING
|
|
159
|
-
/* 1F575 */ '🕵', // (7.0) SLEUTH OR SPY
|
|
160
152
|
/* 1F576 */ '🕶', // (7.0) DARK SUNGLASSES
|
|
161
153
|
/* 1F577 */ '🕷', // (7.0) SPIDER
|
|
162
154
|
/* 1F578 */ '🕸', // (7.0) SPIDER WEB
|
|
@@ -166,7 +158,6 @@ export const narrowEmojiCharacters = [
|
|
|
166
158
|
/* 1F58B */ '🖋', // (7.0) LOWER LEFT FOUNTAIN PEN
|
|
167
159
|
/* 1F58C */ '🖌', // (7.0) LOWER LEFT PAINTBRUSH
|
|
168
160
|
/* 1F58D */ '🖍', // (7.0) LOWER LEFT CRAYON
|
|
169
|
-
/* 1F590 */ '🖐', // (7.0) RAISED HAND WITH FINGERS SPLAYED
|
|
170
161
|
/* 1F5A5 */ '🖥', // (7.0) DESKTOP COMPUTER
|
|
171
162
|
/* 1F5A8 */ '🖨', // (7.0) PRINTER
|
|
172
163
|
/* 1F5B1 */ '🖱', // (7.0) THREE BUTTON MOUSE
|
|
@@ -206,29 +197,28 @@ export const narrowEmojiCodePoints = [
|
|
|
206
197
|
169, 174, 8252, 8265, 8482, 8505, 8596, 8597, 8598, 8599, 8600, 8601, 8617,
|
|
207
198
|
8618, 9000, 9167, 9197, 9198, 9199, 9201, 9202, 9208, 9209, 9210, 9410, 9642,
|
|
208
199
|
9643, 9654, 9664, 9723, 9724, 9728, 9729, 9730, 9731, 9732, 9742, 9745, 9752,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
128396, 128397, 128400, 128421, 128424, 128433, 128434, 128444, 128450,
|
|
200
|
+
9760, 9762, 9763, 9766, 9770, 9774, 9775, 9784, 9785, 9786, 9792, 9794, 9823,
|
|
201
|
+
9824, 9827, 9829, 9830, 9832, 9851, 9854, 9874, 9876, 9877, 9878, 9879, 9881,
|
|
202
|
+
9883, 9884, 9888, 9895, 9904, 9905, 9928, 9935, 9937, 9939, 9961, 9968, 9969,
|
|
203
|
+
9972, 9975, 9976, 9986, 9992, 9993, 9999, 10002, 10004, 10006, 10013, 10017,
|
|
204
|
+
10035, 10036, 10052, 10055, 10083, 10084, 10145, 10548, 10549, 11013, 11014,
|
|
205
|
+
11015, 127344, 127345, 127358, 127359, 127777, 127780, 127781, 127782, 127783,
|
|
206
|
+
127784, 127785, 127786, 127787, 127788, 127798, 127869, 127894, 127895,
|
|
207
|
+
127897, 127898, 127899, 127902, 127903, 127949, 127950, 127956, 127957,
|
|
208
|
+
127958, 127959, 127960, 127961, 127962, 127963, 127964, 127965, 127966,
|
|
209
|
+
127967, 127987, 127989, 127991, 128063, 128065, 128253, 128329, 128330,
|
|
210
|
+
128367, 128368, 128371, 128374, 128375, 128376, 128377, 128391, 128394,
|
|
211
|
+
128395, 128396, 128397, 128421, 128424, 128433, 128434, 128444, 128450,
|
|
222
212
|
128451, 128452, 128465, 128466, 128467, 128476, 128477, 128478, 128481,
|
|
223
213
|
128483, 128488, 128495, 128499, 128506, 128715, 128717, 128718, 128719,
|
|
224
214
|
128736, 128737, 128738, 128739, 128740, 128741, 128745, 128752, 128755,
|
|
225
215
|
]
|
|
226
216
|
|
|
227
217
|
export const narrowEmojiString =
|
|
228
|
-
'
|
|
218
|
+
'©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏭⏮⏯⏱⏲⏸⏹⏺Ⓜ▪▫▶◀◻◼☀☁☂☃☄☎☑☘☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷⛸✂✈✉✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇🅰🅱🅾🅿🌡🌤🌥🌦🌧🌨🌩🌪🌫🌬🌶🍽🎖🎗🎙🎚🎛🎞🎟🏍🏎🏔🏕🏖🏗🏘🏙🏚🏛🏜🏝🏞🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳🕶🕷🕸🕹🖇🖊🖋🖌🖍🖥🖨🖱🖲🖼🗂🗃🗄🗑🗒🗓🗜🗝🗞🗡🗣🗨🗯🗳🗺🛋🛍🛎🛏🛠🛡🛢🛣🛤🛥🛩🛰🛳'
|
|
229
219
|
|
|
230
220
|
export const narrowEmojiRegexp =
|
|
231
|
-
/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\
|
|
221
|
+
/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05-\u2B07]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF3\uDFF5\uDFF7]|\uD83D[\uDC3F\uDC41\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])$/
|
|
232
222
|
|
|
233
223
|
export const isNarrowEmojiCharacter = (character) =>
|
|
234
224
|
narrowEmojiRegexp.test(character)
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -34,13 +34,13 @@ import {
|
|
|
34
34
|
} from 'narrow-emojis'
|
|
35
35
|
|
|
36
36
|
console.log(narrowEmojiCharacters)
|
|
37
|
-
// -> [ '©', '®', '‼', ...
|
|
37
|
+
// -> [ '©', '®', '‼', ... 189 more items ]
|
|
38
38
|
|
|
39
39
|
console.log(narrowEmojiCodePoints)
|
|
40
|
-
// -> [ 169, 174, 8252, ...
|
|
40
|
+
// -> [ 169, 174, 8252, ... 189 more items ]
|
|
41
41
|
|
|
42
42
|
console.log(new Set(narrowEmojiString))
|
|
43
|
-
// -> Set(
|
|
43
|
+
// -> Set(192) { '©', '®', '‼', ... 189 more items }
|
|
44
44
|
|
|
45
45
|
console.log(narrowEmojiRegexp.test('©'))
|
|
46
46
|
// -> true
|