Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
animality
Advanced tools
Readme
A simple API wrapper that generates images & facts of any animal
Use the package manager npm to install animality
.
$ npm i animality
const animality = require('animality');
cat
dog
bird
panda
redpanda
koala
fox
whale
kangaroo
bunny
const animality = require('animality');
// Singular animal.
const animal = 'cat';
animality.getAsync(animal).then(console.log);
/*
Output:
{
name: 'cat',
image: 'An image URL here',
fact: 'A fact here'
}
*/
// Multiple animals can also be used.
const animals = ['cat', 'dog', 'panda'];
animality.getAsync(animals).then(console.log);
/*
Output:
[
{
name: 'cat',
image: 'An image URL here',
fact: 'A fact here'
},
{
name: 'dog',
image: 'An image URL here',
fact: 'A fact here'
},
{
name: 'panda',
image: 'An image URL here',
fact: 'A fact here'
}
]
*/
// A random animal type.
const animal = 'random';
animality.getAsync(animal).then(console.log);
/*
Output:
{
name: 'redpanda',
image: 'An image URL here',
fact: 'A fact here'
}
*/
FAQs
Unknown package
We found that animality demonstrated a healthy version release cadence and project activity because the last version was released less than 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 researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.