streamtip
A Node.JS wrapper for the Streamtip API.
Installation
npm install streamtip
Usage
const StreamTip = require('streamtip');
let opts = {
clientId: '12345',
accessToken: '67890'
};
let streamtip = new Streamtip(opts);
streamtip.on('connected', () => {
console.log('connected!');
});
streamtip.on('authenticated', () => {
console.log('authenticated!');
});
streamtip.on('authenticationFailed', () => {
console.log('authentication failed!');
});
streamtip.on('ratelimited', () => {
console.log('rate limited!');
});
streamtip.on('newTip', tip => {
console.log(`new tip! ${tip.username} has tipped ${tip.currencySymbol}${tip.amount}!`);
});
streamtip.on('error', err => {
console.log(`error! ${err.message}`);
});
Contributing
- Fork the project
- Create your feature/fix on a new branch
- Create a new pull request pointing to that branch
License
'streamtip', this project, is copyright (c) Matthew McNamara and provided under the MIT license, which is available to read in the [LICENSE][] file.
[license]: LICENSE
Streamtip itself, at streamtip.com, is copyright (c) NightDev, LLC.