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.
A NodeJS wrapper for the Pokéapi.
Install via npm:
npm install --save pokenode
Using this wrapper will invoke the same restrictions as hitting the API with REST calls. So there is no authentication, but you are limited to 300 requests per resource per IP address.
We follow the same naming conventions as the official API, so check the documentation for all available features. Here's a quick example. To get Bulbasaur, the equivalent of a call to GET http://pokeapi.co/api/v1/pokemon/1/
, do the following:
var pokeAPI = require('pokenode');
pokeAPI.pokemon(1, function(err, data) {
if(err) {
// handle err
} else {
// have some data about Bulbasaur
}
});
Available functions are pokedex
, pokemon
, type
, move
, ability
, pokemon
, egg
, description
, sprite
, and game
. The function pokedex
takes no parameters, just a callback function.
You do not have to know the index of a type to get the resource. Instead, you may call:
pokeAPI.type('fire', function(err, data) { ...
To get the fire object.
The Pokéapi is currently at version 1. In case that ever changes, you can set the version number with:
var pokeAPI = require('pokenode');
pokeAPI.version(2);
FAQs
NodeJS wrapper for the Pokemon API.
The npm package pokenode receives a total of 0 weekly downloads. As such, pokenode popularity was classified as not popular.
We found that pokenode 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.