Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1Computer1/twitch-emoticons
A JS module that gets Twitch emotes. https://www.npmjs.com/package/twitch-emoticons
https://github.com/1Computer1/twitch-emoticons
bttv-emotes emotes frankerfacez parsing twitch-tv
Last synced: 22 days ago
JSON representation
A JS module that gets Twitch emotes. https://www.npmjs.com/package/twitch-emoticons
- Host: GitHub
- URL: https://github.com/1Computer1/twitch-emoticons
- Owner: 1Computer1
- License: mit
- Archived: true
- Created: 2016-12-07T23:44:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T18:16:11.000Z (almost 2 years ago)
- Last Synced: 2023-12-28T13:29:54.749Z (10 months ago)
- Topics: bttv-emotes, emotes, frankerfacez, parsing, twitch-tv
- Language: JavaScript
- Homepage:
- Size: 72.3 KB
- Stars: 18
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# twitch-emoticons
Get a Twitch channel's Twitch emotes, BTTV emotes, and FFZ emotes!
### Example
```js
const { EmoteFetcher, EmoteParser } = require('twitch-emoticons');const fetcher = new EmoteFetcher();
const parser = new EmoteParser(fetcher, {
type: 'markdown',
match: /:(.+?):/g
});fetcher.fetchTwitchEmotes().then(() => {
const kappa = fetcher.emotes.get('Kappa').toLink();
console.log(kappa);
// https://static-cdn.jtvnw.net/emoticons/v1/25/1.0const text = 'Hello :PogChamp:!';
const parsed = parser.parse(text);
console.log(parsed);
// Hello ![PogChamp](https://static-cdn.jtvnw.net/emoticons/v1/88/1.0 "PogChamp")!
});
```### Links
- [Github](https://github.com/1Computer1/twitch-emoticons)
- [Documentation](https://1computer1.github.io/twitch-emoticons/)
- [Changelog](https://github.com/1Computer1/twitch-emoticons/releases)This library uses the following:
- [Twitch Emotes API](https://twitchemotes.com/apidocs)
- [BetterTTV API](https://api.betterttv.net/)
- [FrankerFaceZ API](http://www.frankerfacez.com/developers)