# node-dogandcat

> A package to get a random dog and cat picture or fact from a public api.

Latest version **1.1.0** (published 2019-07-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install node-dogandcat
pnpm add node-dogandcat
yarn add node-dogandcat
bun add node-dogandcat
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-07-03 |
| First published | 2019-07-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Colin Parsons |
| Maintainers | snavellet |
| Keywords | dog, cat, animal, animals, random, random.dog, random.cat |

## Links

- npm: https://www.npmjs.com/package/node-dogandcat
- Repository: https://github.com/Snavellet/node-dogandcat
- Homepage: https://github.com/Snavellet/node-dogandcat#readme
- Issues: https://github.com/Snavellet/node-dogandcat/issues
- npm.io page: https://npm.io/package/node-dogandcat

## Dependencies (1)

- [request](https://npm.io/package/request.md) ^2.88.0

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2019-07-03
- 1.0.9 — 2019-07-03
- 1.0.8 — 2019-07-03
- 1.0.7 — 2019-07-02
- 1.0.6 — 2019-07-01
- 1.0.5 — 2019-07-01
- 1.0.4 — 2019-07-01
- 1.0.3 — 2019-07-01
- 1.0.2 — 2019-07-01
- 1.0.1 — 2019-07-01
- 1.0.0 — 2019-07-01

## README

# Description:
A simple node package to get a image and a fact about cats and dogs.

# Installation:
```npm i node-dogandcat --save```

# Usage:
 
```javascript
const random = require('node-dogandcat');
random.getRandomDog() // Returns a promise containing the image url that you can resolve.
.then(result => console.log(result))
.catch(err => console.error(err));

random.getRandomDogFact() // Returns a promise containing the random dog fact that you can resolve. You can also specify the amount to get as a function argument, but the default is 1, if the amount is more than 1, it will return an array.
.then(result => console.log(result))
.catch(err => console.error(err));

random.getRandomCatFact() // Returns a promise containing the random cat fact that you can resolve. You can also specify the amount to get as a function argument, but the default is 1, if the amount is more than 1, it will return an array.
.then(result => console.log(result))
.catch(err => console.error(err));

random.getRandomCat() // Returns a promise containing the image url that you can resolve.
.then(result => console.log(result))
.catch(err => console.error(err)); 
```

---
_Source: https://npm.io/package/node-dogandcat · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
