# @miaos/catsay

> catsay is a cat say something...

Latest version **0.1.2** (published 2022-03-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install @miaos/catsay
pnpm add @miaos/catsay
yarn add @miaos/catsay
bun add @miaos/catsay
```

Provides the commands `catsay`, `catthink`.

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2022-03-29 |
| First published | 2022-03-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 82.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | pomelo-chuan |
| Maintainers | pomelo-chuan |
| Keywords | catsay, catthink, cowsay, talking, ASCII, art |

## Links

- npm: https://www.npmjs.com/package/@miaos/catsay
- Repository: https://github.com/pomelo-chuan/catsay
- Homepage: https://github.com/pomelo-chuan/catsay#readme
- Issues: https://github.com/pomelo-chuan/catsay/issues
- npm.io page: https://npm.io/package/@miaos/catsay

## Dependencies (4)

- [yargs](https://npm.io/package/yargs.md) ^17.4.0
- [get-stdin](https://npm.io/package/get-stdin.md) ^8.0.0
- [string-width](https://npm.io/package/string-width.md) ^5.1.2
- [strip-final-newline](https://npm.io/package/strip-final-newline.md) ^2.0.0

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2022-03-29
- 0.1.1 — 2022-03-28
- 0.1.0 — 2022-03-28
- 0.0.9 — 2022-03-28
- 0.0.8 — 2022-03-28
- 0.0.7 — 2022-03-27
- 0.0.6 — 2022-03-27
- 0.0.5 — 2022-03-27
- 0.0.4 — 2022-03-27
- 0.0.3 — 2022-03-27
- 0.0.2 — 2022-03-27
- 0.0.1 — 2022-03-26

## README

# catsay

```
┌──────────────────────┐
│  Hello from catsay.  │
└──────────────────────┘
  \
   \
      |\_|\
      |@.@ |______________
      >\m<          ______)
         \_  ______ \
         / /   / / \ \
        (_/   (_/   \_)
```

`catsay` is a cat say something that you want to say in terminal. I always use [cowsay](https://github.com/piuccio/cowsay) to print some message but I love cat so I write `catsay`;

## Install
```
$ npm i @miaos/catsay -g
```

## Usage
```
$ catsay I Love Cat.
$ catthink Cat is so cute.
```

help
```
$ catsay -h
```

Specific eye, mouth, bubble style, cat.
```
$ catsay I love you -E=d -M=U -C=miao -B=topAndBottomLine
```

## Use in js module
```javascript
const catsay = require('@miaos/catsay');
// or
import * as catsay from '@miaos/catsay'

console.log(catsay.say('我爱你'));

console.log(catsay.say({
  text: 'I Love You',
  eye: '9', // eye of cat
  E: '9', // short for eye
  mouse: 'w', // mouse of cat
  M: 'w', // short for mouse
  boxStyle: 'box', // box or topAndBottomLine, default is box
  B: 'box', // short for boxStyle
}));

console.log(catsay.think('I Love You'));
```

## Use in browser
```html
<script src="path/to/catsay.umd.js"></script>
<style>
  pre {
    font-family: Consolas, Monaco, monospace;
  }
</style>

<pre id="cat"></pre>
<script>
  document.querySelector('#cat').innerHTML = catsay.think({ text: 'I love you.', boxStyle: 'topAndBottomLine' });
</script>

```

## Pipe
```
$ echo print by catsay | catsay
```

## boxStyle
```
┌─────────────────┐
│  boxStyle: box  │
└─────────────────┘
  \
   \
      |\_|\
      |️Q.️Q |______________
      >\O<          ______)
         \_  ______ \
         / /   / / \ \
        (_/   (_/   \_)

------------------------------
  boxStyle: topAndBottomLine
------------------------------
  \
   \
      |\_|\
      |️Q.️Q |______________
      >\O<          ______)
         \_  ______ \
         / /   / / \ \
        (_/   (_/   \_)
```

## cat
```
┌─────────────┐
│  I am miao  │
└─────────────┘
  \
   \
   /\___/\
  /       \
 |  @   @  |
>===  *  ===<
  \   m   /
    ======
  /       \ __
 |         |\ \
 |         |/ /
 |  || ||  |_/
  \_oo_oo_/

┌──────────┐
│  I am Q  │
└──────────┘
  \
   \
      |\_|\
      |@.@ |______________
      >\m<          ______)
         \_  ______ \
         / /   / / \ \
        (_/   (_/   \_)
```

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