
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
steamapi-node
Advanced tools
A wrapper for the Steam Api written in javascript.
This is a fork of node-steamapi where i only refactored the code to be more Object Oriented aswell as fixed little stuff with JSDocs as example and used snekfetch for the http requests.
also it is fully documented with JsDocs and has typings included.
You just require the module and create a new Class instance of the exported class. You need to provide atleast an key but it also has caching options to cache requests for getGameNews because this enpoint has an rate-limit of 200 every 5 minutes. aswell as you can provide an array of names from these endpoint groups you dont need to save memory.
Examples:
const SteamUser = require('steamapi-node');
const steam = new SteamUser("YOUR STEAM API KEY HERE");
steam.others.resolve('/profiles/76561198334532819/').then(id => {
// handle returned data
steam.users.getUserFriends(id).then(result => {
// handle more returnded data
})
})
or with async/await
const SteamUser = require('steamapi-node');
const steam = new SteamUser("YOUR STEAM API KEY HERE");
const getFriends = async input => {
const id = await steam.others.resolve(input);
const friends = await steam.users.getUserFriends(id);
return friends
}
getFriends('/profiles/76561198334532819/').then(result => {
// handle returned data
});
if you only need specific endpoint groups as example you can do this
const SteamUser = require('steamapi-node');
const steam = new SteamUser("YOUR STEAM API KEY HERE", {}, ['games', 'users']);
steam.others.resolve('/profiles/76561198334532819/').then(result => {
// handle returned data
})
FAQs
a Node.js wrapper for the steam api
The npm package steamapi-node receives a total of 10 weekly downloads. As such, steamapi-node popularity was classified as not popular.
We found that steamapi-node 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.