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.
animality-ts
Advanced tools
A simple API wrapper that generates images & facts of any animal
$ npm install animality
The Node.js wrapper for this API is available for use in Node Package Manager. It's use is pretty straight-forward.
These are the 17 animal strings that can be used to send a request to the API:
cat
dog
bird
panda
redpanda
koala
fox
whale
dolphin
kangaroo
bunny
lion
bear
frog
duck
penguin
axolotl
const {Animality} = require('animality');
const animal = 'cat';
Animality.getAsync(animal, 'API_KEY').then(console.log);
This outputs the following object in the terminal:
{
"name": "cat",
"image": "An image URL here",
"fact": "A fact here"
}
Other than that, this package also allows you to request multiple animals at the same time.
const {Animality} = require('animality');
const animals = ['cat', 'dog', 'panda'];
Animality.getAsync(animals, 'API_KEY').then(console.log);
This outputs the following array of objects in the terminal:
[
{
"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"
}
]
FAQs
A simple API wrapper that generates images & facts of any animal
We found that animality-ts 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
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.