Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
stamina-api
Advanced tools
Npm module can make jokes generator and other. This module is for Stamina website and game. - Only Stamina's developpers: Can manage Stamina's infrastructure.
Ce paquet Npm fourni une interface pour intéragir avec l'API de Stamina
Vous pouvez simplement installer la dépendance à votre projet depuis Npm :
$ npm install stamina-api
const Stamina = require('stamina-api');
const blague = await Stamina.get("jokes").byType("random")
Avec cette méthode, vous pouvez spécifier certains types que vous ne souhaitez pas recevoir.
const blague = await Stamina.get("jokes").byType("random", {
disallow: ['dark', 'limit']
});
const blague = await Stamina.get("jokes").byType('dev');
Les blagues sont identifiées par un ID que vous recevez en même tant que chaque blague.
Spécifiez cet identifiant en paramètre et vous l’obtiendrez à nouveau.
const blague = await Stamina.get("jokes").byID(50);
// console.log(blague);
{
"id": 1,
"type": "dev",
"content": {
"blague": "Question.",
"reponse": "Réponse."
}
}
FAQs
Npm module can make jokes generator and other. This module is for Stamina website and game. - Only Stamina's developpers: Can manage Stamina's infrastructure.
The npm package stamina-api receives a total of 0 weekly downloads. As such, stamina-api popularity was classified as not popular.
We found that stamina-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.