The best place to start with tmi.js is our documentation page.
This module currently support Node.js 4.x and every browser that support WebSockets. The current WebSocket protocol being used by this module is HyBi drafts 13-17.
Install Node using this tutorial. Once installed, jump to the documentation to get started.
npm i tmi.js --save
Reference the file directly in the script tag.
We support Subresource Integrity (SRI) which allows the browser to verify that the files being delivered have not been modified. This https://www.w3.org/TR/SRI/ is currently being implemented by browsers. Adding the new integrity attribute will ensure your application gains this security improvement as browsers support it.
Use Subresource Integrity only if you reference a specific version of tmi.js.
<!--Sourcemap: //cdn.tmijs.org/js/1.1.2/tmi.js.map-->
<script src="//cdn.tmijs.org/js/1.1.2/tmi.min.js" integrity="sha384-GONdkSqsv77zHY1cs3aAZoQJP/9wq2YBmES4prk2ZG1rUvrv3IKLFRbHqk/0CR1b" crossorigin="anonymous"></script>
You must provide the major version when using the latest branch.
<!--Sourcemap: //cdn.tmijs.org/js/latest/1.x/tmi.js.map-->
<script src="//cdn.tmijs.org/js/latest/1.x/tmi.min.js"></script>
- Follow @Schmoopiie on Twitter.
- Have a question that is not a bug report ? Discuss on the tmi.js forum.
- Found a bug ? Submit an issue.
In order of the most commits:
- Schmoopiie - https://github.com/Schmoopiie
- AlcaDesign - https://github.com/AlcaDesign
- ben-eb - https://github.com/ben-eb
- celluj34 - https://github.com/celluj34
- d-4-ni - https://github.com/d-4-ni
- subperks - https://github.com/subperks
- roberthartung - https://github.com/roberthartung
- Hatsuney - https://github.com/Hatsuney
- UnwrittenFun - https://github.com/UnwrittenFun
- Jonliney - https://github.com/Jonliney
- justinsacbibit - https://github.com/justinsacbibit
- mertzt89 - https://github.com/mertzt89
- artemisbot - https://github.com/artemisbot
- egonny - https://github.com/egonny
- smalls89 - https://github.com/smalls89
- joein3d - https://github.com/joein3d
Please review the guidelines for contributing of the tmi.js repository. We reserve the right to refuse a Pull Request if it does not meet the requirements.