This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
tmi.js with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
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.
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.2.1/tmi.js.map--> <script src="//cdn.tmijs.org/js/1.2.1/tmi.min.js" integrity="sha384-eE0n7sm1W7DOUI2Xh5I4qSpZTe6hupAO0ovLfqEy0yVJtGRBNfssdmjbJhEYm6Bw" 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>
In order of the most commits: