some-random-cat
Advanced tools
Comparing version 2.2.1 to 2.2.2
{ | ||
"name": "some-random-cat", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "A very suitable API to generate random images of cats, dogs and random jokes, facts... A lot more!", | ||
"main": "index.js", | ||
"main": "build/src/index.js", | ||
"types": "build", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"build": "tsc" | ||
}, | ||
@@ -24,3 +25,5 @@ "repository": { | ||
"dependencies": { | ||
"@types/node": "^14.14.37", | ||
"axios": "^0.21.0", | ||
"dotenv": "^8.2.0", | ||
"moment": "^2.29.1", | ||
@@ -27,0 +30,0 @@ "moment-duration-format": "^2.3.2" |
@@ -32,14 +32,18 @@ # Introduction | ||
```javascript | ||
const somethingRandom = require('some-random-cat').Random //Import the package | ||
somethingRandom.getCat() | ||
const SomeRandomCat = require('../index').Random; // Replace ../index with some-random-cat | ||
SomeRandomCat.getCat() // Function for generating cat | ||
.then(res => { | ||
console.log(res) | ||
return | ||
}) // Get the result | ||
}) | ||
.catch(e => { | ||
console.error(e) | ||
return | ||
}) // Catch the error | ||
}); | ||
``` | ||
## Contributing | ||
To contribute in this package, simple open a pull request in the github repository. When all the checks for your request have been passed, we can merge it into the main branch. | ||
## Statistics | ||
@@ -50,4 +54,7 @@ | ||
## Support | ||
Join the support server [here](https://discord.gg/HEQxjNqE) | ||
## Documentation | ||
📖 The official documentation is now available [here](https://somerandomcat.js.org) | ||
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
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
766
0
59
39183
5
21
1
1
1
+ Added@types/node@^14.14.37
+ Addeddotenv@^8.2.0
+ Added@types/node@14.18.63(transitive)
+ Addeddotenv@8.6.0(transitive)