# json_the_cat

> A command line app that returns info about a cat breed, using thecatapi.com datasets.

Latest version **1.0.3** (published 2019-07-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install json_the_cat
pnpm add json_the_cat
yarn add json_the_cat
bun add json_the_cat
```

## 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.0.3 |
| Published | 2019-07-06 |
| First published | 2019-07-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rahmat Saeedi |
| Maintainers | rahmatsaeedi |
| Keywords | command line app, cat, cat breeds, thecatapi.com, lighthouselabs, web development project |

## Links

- npm: https://www.npmjs.com/package/json_the_cat
- Repository: https://github.com/RahmatSaeedi/focals/blob/master/json_the_cat/
- Homepage: https://github.com/RahmatSaeedi/focals/tree/master/json_the_cat#readme
- Issues: https://github.com/RahmatSaeedi/focals/issues
- npm.io page: https://npm.io/package/json_the_cat

## 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.0.3 (latest) — 2019-07-06
- 1.0.2 — 2019-07-06
- 1.0.0 — 2019-07-06

## README

# [Cats as a Service](https://github.com/RahmatSaeedi/focals/blob/master/json_the_cat/)
## [index.js](https://github.com/RahmatSaeedi/focals/blob/master/json_the_cat/index.js)
Processes `argv` input and passes cat-breeds to `breedFetcher.js` to obtain its description, and to prints a short description of the breed.
```bash
> node index Siberian Chartreux
# Upon a successful fetch, it may return:
:'

Siberian Info:
The Siberians dog like temperament and affection makes the ideal lap cat and will live quite happily indoors. Very agile and powerful, the Siberian cat can easily leap and reach high places, including the tops of refrigerators and even doors.

Chartreux Info:
The Chartreux is generally silent but communicative. Short play sessions, mixed with naps and meals are their perfect day. Whilst appreciating any attention you give them, they are not demanding, content instead to follow you around devotedly, sleep on your bed and snuggle with you if you’re not feeling well.
'
```
## [Breed Fetcher](https://github.com/RahmatSaeedi/focals/blob/master/json_the_cat/breedFetcher.js)
Returns queried details about a cat breeds. Users can provide any breed name, causing the application to fetch the information from [`thecatapi.com`](https://thecatapi.com/).

```js
const fetchBreedDescription = require('./breedFetcher');
fetchBreedDescription('Siberian', callback);
// where possible callbacks:  callback(null, [STRING])
```

## [Testing](https://github.com/RahmatSaeedi/focals/blob/master/json_the_cat/test/breedFetcherTest.js)
To test the program run `npx mocha`

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