$ npm init
Creates a node project
$ npm -save install tmi.js
Declares tmi.js as a dependancy of the project that you can then require.
package.json and your js file can sent to production and then
$ npm install
Will fetch and install everything in package.json