Socket
Socket
Sign inDemoInstall

animality

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

animality - npm Package Compare versions

Comparing version 1.6.4 to 2.0.0

index.ts

18

package.json
{
"name": "animality",
"version": "1.6.4",
"version": "2.0.0",
"description": "A simple API wrapper that generates images & facts of any animal",
"main": "index.js",
"dependencies": {
"node-fetch": "^3.2.4"
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"devDependencies": {
"@types/node": "^18.0.5",
"typescript": "^4.7.4"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "tsc",
"publish": "npm run build && npm publish"
},

@@ -27,3 +30,6 @@ "repository": {

},
"homepage": "https://animality.xyz"
"homepage": "https://animality.xyz",
"dependencies": {
"undici": "^5.7.0"
}
}

@@ -1,2 +0,2 @@

# animality
# animality-js
A simple API wrapper that generates images & facts of any animal

@@ -12,12 +12,12 @@

# Usage
These are the 18 animal strings that can be used to send a request to the API:
These are the 17 animal strings that can be used to send a request to the API:
* `cat`
* `dog`
* `bird`
* `panda`
* `redpanda`
* `koala`
* `fox`
* `bird`
* `panda`
* `redpanda`
* `koala`
* `fox`
* `whale`
* `dolphin`
* `dolphin`
* `kangaroo`

@@ -31,9 +31,8 @@ * `bunny`

* `axolotl`
* `capybara`
# Example
```js
const animality = require('animality');
const {Animality} = require('animality');
const animal = 'cat';
animality.getAsync(animal).then(console.log);
Animality.getAsync(animal, 'API_KEY').then(console.log);
```

@@ -54,5 +53,5 @@

```js
const animality = require('animality');
const {Animality} = require('animality');
const animals = ['cat', 'dog', 'panda'];
animality.getAsync(animals).then(console.log);
Animality.getAsync(animals, 'API_KEY').then(console.log);
```

@@ -59,0 +58,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc