Comparing version 1.6.4 to 2.0.0
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
5080
72
0
0
2
76
+ Addedundici@^5.7.0
+ Added@fastify/busboy@2.1.1(transitive)
+ Addedundici@5.28.4(transitive)
- Removednode-fetch@^3.2.4
- Removeddata-uri-to-buffer@4.0.1(transitive)
- Removedfetch-blob@3.2.0(transitive)
- Removedformdata-polyfill@4.0.10(transitive)
- Removednode-domexception@1.0.0(transitive)
- Removednode-fetch@3.3.2(transitive)
- Removedweb-streams-polyfill@3.3.3(transitive)