streamer-emotes 0.0.5 → 0.1.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
@@ -6,11 +6,12 @@ A library to get Twitch, BTTV, FFZ and 7TV emotes for a given Twitch channel.
6
6
  ```js
7
7
  import { getStreamerEmotes } from "streamer-emotes";
8
8
 
9
- const rubiusEmotes = await getStreamerEmotes("rubius", {
9
+ const emotes = await getStreamerEmotes("rubius", {
10
+ bttv: true, // Get BTTV emotes
11
+ ffz: true, // Get FFZ emotes
10
12
  sevenTV: true, // Get 7TV emotes
11
13
  twitch: { globals: false } // Get Twitch emotes but exclude global ones
12
14
  });
13
15
 
14
- console.log(rubiusEmotes);
15
-
16
+ console.info(emotes);
16
17
  ```
package/dist/index.d.mts CHANGED
@@ -8,6 +8,7 @@ interface StreamerEmotesProps {
8
8
  }[];
9
9
  name: string;
10
10
  provider: "7tv" | "bttv" | "ffz" | "twitch";
11
+ zeroWidth?: boolean;
11
12
  }
12
13
  interface StreamerEmotesProviderResponse {
13
14
  channel: StreamerEmotesProps[];
package/dist/index.mjs CHANGED
@@ -69,7 +69,8 @@ const get7tvEmotes = async (channelLogin, options) => {
69
69
  id: emote.id,
70
70
  images,
71
71
  name: emote.name,
72
- provider: "7tv"
72
+ provider: "7tv",
73
+ zeroWidth: emote.flags === 1 && emote.data.flags === 256
73
74
  };
74
75
  });
75
76
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "streamer-emotes",
3
3
  "type": "module",
4
- "version": "0.0.5",
4
+ "version": "0.1.0",
5
5
  "description": "A library to get Twitch, BTTV, FFZ and 7TV emotes for a given Twitch channel.",
6
6
  "keywords": [
7
7
  "streamer",
@@ -55,4 +55,4 @@
55
55
  "typescript": "^5.9.3"
56
56
  },
57
57
  "packageManager": "pnpm@10.32.1"
58
- }
58
+ }