Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
node-streamelements
Advanced tools
An unofficial wrapper for the StreamElements API.
Official StreamElements API Documentation
Install the node-streamelements
package from the NPM repository, using --save
to update your package.json
:
npm install node-streamelements --save
Some calls require few, specific options and are required method arguments. More complex calls, such as create
or update
operations require more detailed options. Reference the official documentation for type requirements and object structure.
Import the package, create a new instance using your Account ID and JWT Token (found in your account profile), and call methods which return promises.
const StreamElements = require('node-streamelements');
const myInstance = new StreamElements({
token: 'YourJWTToken',
accountId: 'YourAccountID'
});
// Get current song in queue.
myInstance
.getCurrentSong()
.then((response) => {
console.log(`Current song is ${response.title}.`);
})
.catch((error) => {
console.log(error);
});
In the event the API sees a non-major version bump which introduces new functionality, you may call makeRequest()
directly until a new node-streamelements
package version is available.
Even though your current instance may be tied to a specific channel, you may optionally override the channel being requested upon by passing its ID into methods. For example:
myInstance
.getCurrentSong('CHANNELID')
.then((response) => {
console.log(`Current song is ${response.title}.`);
})
.catch((error) => {
console.log(error);
});
NOTE: In order for this to work, you must be given Manager permissions for the target channel.
To contribute to the package, please follow the forking model:
master
.develop
branch.Your pull request will be reviewed by Maintainers, feedback will be provided if necessary, and then merged. Please, do not bump the package version in your pull request.
This package was created to help reduce the amount of code manually written for each project wishing to work with the StreamElements API. In no way is this project officially endorsed, maintained, or approved by StreamElements.
FAQs
An unofficial wrapper for the StreamElements API.
The npm package node-streamelements receives a total of 0 weekly downloads. As such, node-streamelements popularity was classified as not popular.
We found that node-streamelements demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.