nekos 3.1.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +71 -41
- package/README.md +242 -219
- package/aa/4w4.txt +3 -0
- package/aa/boo.txt +4 -4
- package/aa/face.txt +11 -11
- package/aa/hug.txt +3 -3
- package/aa/love.txt +4 -4
- package/aa/my_cat.txt +2 -2
- package/aa/neko.txt +5 -5
- package/aa/nya.txt +4 -0
- package/aa/nyancat.txt +4 -4
- package/aa/nyancat_fourth.txt +4 -4
- package/aa/nyancat_laugh.txt +5 -5
- package/aa/nyancat_x.txt +4 -4
- package/aa/o_o.txt +3 -0
- package/aa/owo.txt +3 -0
- package/aa/reading.txt +4 -4
- package/aa/sit_down_cat.txt +3 -3
- package/aa/sitting.txt +4 -4
- package/aa/sleeping.txt +2 -2
- package/aa/zzz.txt +3 -0
- package/bin/nekos.js +20 -3
- package/package.json +60 -56
- package/private/test.js +3 -0
package/CONTRIBUTING.md
CHANGED
|
@@ -1,41 +1,71 @@
|
|
|
1
|
-
# How to Contribute
|
|
2
|
-
|
|
3
|
-
We welcome contributions! If you want to add a new ASCII art, please follow these rules.
|
|
4
|
-
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1
|
+
# How to Contribute
|
|
2
|
+
|
|
3
|
+
We welcome contributions! If you want to add a new ASCII art, please follow these rules.
|
|
4
|
+
|
|
5
|
+
## Required Process
|
|
6
|
+
|
|
7
|
+
### Setup
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Test
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm run build
|
|
17
|
+
npm run test
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Adding New ASCII Art
|
|
21
|
+
|
|
22
|
+
You can add new cat ASCII art to the `aa/` directory. A pull request is required to add a file.
|
|
23
|
+
|
|
24
|
+
> ⚠ Do not send a pull request for ASCII art to `requests` or `dev` branch. Please send to `main` branch.
|
|
25
|
+
|
|
26
|
+
### Contribution Rules
|
|
27
|
+
|
|
28
|
+
Our system will automatically check your pull request to ensure it follows these rules:
|
|
29
|
+
|
|
30
|
+
1. **Do not modify or delete** existing files in the `aa/` directory.
|
|
31
|
+
2. The filename must be **unique** and end with the `.txt` extension.
|
|
32
|
+
3. The filename (without the extension) can only contain **lowercase letters (a-z)**, **numbers (0-9)**, **underscores (_)**, and **hyphens (-)**.
|
|
33
|
+
|
|
34
|
+
Thank you for your contribution! 🐱
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
# コントリビューションの方法 (日本語)
|
|
39
|
+
|
|
40
|
+
コントリビューションを歓迎します!新しいアスキーアートを追加したい場合は、以下のルールに従ってください。
|
|
41
|
+
|
|
42
|
+
## 必要な手順
|
|
43
|
+
|
|
44
|
+
### セットアップ
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm install
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### テスト
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npm run build
|
|
54
|
+
npm run test
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## 新しいアスキーアートの追加
|
|
58
|
+
|
|
59
|
+
`aa/` ディレクトリに新しい猫のアスキーアートを追加できます。ファイルを追加するにはプルリクエストが必要です。
|
|
60
|
+
|
|
61
|
+
> ⚠ `requests` や `dev` ブランチにアスキーアートのためのプルリクエストを送信しないでください。 `main` ブランチに送信をお願いします。
|
|
62
|
+
|
|
63
|
+
### コントリビューションのルール
|
|
64
|
+
|
|
65
|
+
システムは、あなたのプルリクエストが以下のルールに従っているかを自動的にチェックします。
|
|
66
|
+
|
|
67
|
+
1. **既存のファイルを変更・削除しないこと**:`aa/` ディレクトリ内の既存のファイルは変更したり削除したりしないでください。
|
|
68
|
+
2. **ユニークなファイル名**:ファイル名は他と重複しないユニークなもので、必ず `.txt` で終わるようにしてください。
|
|
69
|
+
3. **使用可能な文字**:ファイル名(拡張子を除く)には、**小文字の英字 (a-z)**、**数字 (0-9)**、**アンダースコア (_)**、**ハイフン (-)** のみ使用できます。
|
|
70
|
+
|
|
71
|
+
ご協力ありがとうございます! 🐱
|
package/README.md
CHANGED
|
@@ -1,219 +1,242 @@
|
|
|
1
|
-
# nekos 🐱
|
|
2
|
-
|
|
3
|
-
[](https://badge.fury.io/js/nekos)
|
|
4
|
-
[](https://opensource.org/licenses/MIT)
|
|
5
|
-
[](https://badge.fury.io/js/nekos)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
[](https://github.com/prettier/prettier)
|
|
6
|
+
[](https://github.com/otoneko110/nekos/actions/workflows/validate-aa.yml)
|
|
7
|
+
|
|
8
|
+
<a href="https://www.buymeacoffee.com/devuloper" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
|
|
9
|
+
|
|
10
|
+
<a href='https://ko-fi.com/E1E41LY2C9' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi6.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
|
|
11
|
+
|
|
12
|
+
A simple CLI tool to display cat ASCII art in your console.
|
|
13
|
+
|
|
14
|
+

|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install nekos
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
```javascript
|
|
25
|
+
// ESM
|
|
26
|
+
import nekos from "nekos";
|
|
27
|
+
// CJS
|
|
28
|
+
const nekos = require("nekos").default;
|
|
29
|
+
|
|
30
|
+
// Log a random cat
|
|
31
|
+
nekos();
|
|
32
|
+
|
|
33
|
+
// Log a specific cat by ID
|
|
34
|
+
nekos({ id: "my_cat" });
|
|
35
|
+
|
|
36
|
+
// Log a cat with a rainbow gradient
|
|
37
|
+
nekos({ colors: "RAINBOW" });
|
|
38
|
+
|
|
39
|
+
// Log a cat with a single random color
|
|
40
|
+
nekos({ colors: "RANDOM" });
|
|
41
|
+
|
|
42
|
+
// Log a cat with a custom gradient
|
|
43
|
+
nekos({ colors: ["#ff00ff", "#00ffff"] });
|
|
44
|
+
|
|
45
|
+
// Log a specific cat with two random gradient colors
|
|
46
|
+
nekos({ id: "sad_cat", colors: ["RANDOM", "RANDOM"] });
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
[ESM Example - demo.js](test/demo.js)
|
|
50
|
+
[CJS Example - demo.cjs](test/demo.cjs)
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## CLI Usage
|
|
55
|
+
|
|
56
|
+
For command line use, either install the package globally or use `npx`.
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# Install globally
|
|
60
|
+
npm install -g nekos
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Examples
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
# Display a random cat
|
|
67
|
+
nekos
|
|
68
|
+
|
|
69
|
+
# Display a specific cat by ID
|
|
70
|
+
nekos --id my_cat
|
|
71
|
+
nekos -i my_cat
|
|
72
|
+
|
|
73
|
+
# Display a cat with a rainbow gradient
|
|
74
|
+
nekos --colors RAINBOW
|
|
75
|
+
nekos -c RAINBOW
|
|
76
|
+
|
|
77
|
+
# Display a cat with two random gradient colors
|
|
78
|
+
nekos --colors RANDOM RANDOM
|
|
79
|
+
nekos -c RANDOM RANDOM
|
|
80
|
+
|
|
81
|
+
# Display a specific cat with a custom gradient
|
|
82
|
+
nekos --id sad_cat --colors "#ff00ff" "#00ffff"
|
|
83
|
+
nekos -i sad_cat -c "#ff00ff" "#00ffff"
|
|
84
|
+
|
|
85
|
+
# You can also use npx without a global installation
|
|
86
|
+
npx nekos --colors "#ff00ff #00ffff"
|
|
87
|
+
npx nekos -c "#ff00ff" "#00ffff"
|
|
88
|
+
|
|
89
|
+
# Check the current version.
|
|
90
|
+
nekos --version
|
|
91
|
+
nekos -v
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## API
|
|
97
|
+
|
|
98
|
+
`nekos(options)`
|
|
99
|
+
|
|
100
|
+
### options
|
|
101
|
+
|
|
102
|
+
Type: `object`
|
|
103
|
+
|
|
104
|
+
#### id
|
|
105
|
+
|
|
106
|
+
Type: `string`
|
|
107
|
+
|
|
108
|
+
The ID of the ASCII art to display (the filename without the `.txt` extension). If not provided, a random cat will be shown.
|
|
109
|
+
|
|
110
|
+
#### colors
|
|
111
|
+
|
|
112
|
+
Type: `string | string[]`
|
|
113
|
+
|
|
114
|
+
Specify the color(s) for the ASCII art.
|
|
115
|
+
|
|
116
|
+
- **String Keywords:**
|
|
117
|
+
- `'RANDOM'`: Applies a single random solid color.
|
|
118
|
+
- `'RAINBOW'`: Applies a rainbow gradient.
|
|
119
|
+
- **String Array:** An array of color strings (e.g., hex codes, color names) to create a custom gradient.
|
|
120
|
+
|
|
121
|
+
## Contributing
|
|
122
|
+
|
|
123
|
+
Contributions are welcome! Please see the [Contributing Guidelines](CONTRIBUTING.md) for more details.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## nekos 🐱 (日本語)
|
|
128
|
+
|
|
129
|
+
コンソールに猫のアスキーアートを表示する、シンプルな CLI ツールです。
|
|
130
|
+
|
|
131
|
+
## インストール
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
npm install nekos
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## 使い方
|
|
138
|
+
|
|
139
|
+
```javascript
|
|
140
|
+
// ESM
|
|
141
|
+
import nekos from "nekos";
|
|
142
|
+
// CJS
|
|
143
|
+
const nekos = require("nekos").default;
|
|
144
|
+
|
|
145
|
+
// ランダムな猫を表示
|
|
146
|
+
nekos();
|
|
147
|
+
|
|
148
|
+
// IDを指定して特定の猫を表示
|
|
149
|
+
nekos({ id: "my_cat" });
|
|
150
|
+
|
|
151
|
+
// 虹色のグラデーションで猫を表示
|
|
152
|
+
nekos({ colors: "RAINBOW" });
|
|
153
|
+
|
|
154
|
+
// ランダムな単色で猫を表示
|
|
155
|
+
nekos({ colors: "RANDOM" });
|
|
156
|
+
|
|
157
|
+
// カスタムグラデーションで猫を表示
|
|
158
|
+
nekos({ colors: ["#ff00ff", "#00ffff"] });
|
|
159
|
+
|
|
160
|
+
// IDを指定した猫に、2色のランダムなグラデーションを適用
|
|
161
|
+
nekos({ id: "sad_cat", colors: ["RANDOM", "RANDOM"] });
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
[ESM Example - demo.js](test/demo.js)
|
|
165
|
+
[CJS Example - demo.cjs](test/demo.cjs)
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## コマンドラインでの使い方
|
|
170
|
+
|
|
171
|
+
コマンドラインで使うには、パッケージをグローバルインストールするか、`npx`を利用します。
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
# グローバルインストール
|
|
175
|
+
npm install -g nekos
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### 実行例
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
# ランダムな猫を表示
|
|
182
|
+
nekos
|
|
183
|
+
|
|
184
|
+
# IDを指定して特定の猫を表示
|
|
185
|
+
nekos --id my_cat
|
|
186
|
+
nekos -i
|
|
187
|
+
|
|
188
|
+
# 虹色のグラデーションで猫を表示
|
|
189
|
+
nekos --colors RAINBOW
|
|
190
|
+
nekos -c RAINBOW
|
|
191
|
+
|
|
192
|
+
# 2色のランダムなグラデーションで猫を表示
|
|
193
|
+
nekos --colors RANDOM RANDOM
|
|
194
|
+
nekos -c RANDOM RANDOM
|
|
195
|
+
|
|
196
|
+
# IDを指定した猫にカスタムグラデーションを適用
|
|
197
|
+
nekos --id sad_cat --colors "#ff00ff" "#00ffff"
|
|
198
|
+
nekos -i sad_cat -c "#ff00ff" "#00ffff"
|
|
199
|
+
|
|
200
|
+
# グローバルインストールなしでnpxを使っても実行できます
|
|
201
|
+
npx nekos --colors "#ff00ff #00ffff"
|
|
202
|
+
npx nekos -c "#ff00ff" "#00ffff"
|
|
203
|
+
|
|
204
|
+
# 現在のバージョンを確認
|
|
205
|
+
nekos --version
|
|
206
|
+
nekos -v
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## API
|
|
212
|
+
|
|
213
|
+
`nekos(options)`
|
|
214
|
+
|
|
215
|
+
### options
|
|
216
|
+
|
|
217
|
+
型: `object`
|
|
218
|
+
|
|
219
|
+
#### id
|
|
220
|
+
|
|
221
|
+
型: `string`
|
|
222
|
+
|
|
223
|
+
表示したいアスキーアートの ID(`.txt`を除いたファイル名)。指定しない場合は、ランダムな猫が表示されます。
|
|
224
|
+
|
|
225
|
+
#### colors
|
|
226
|
+
|
|
227
|
+
型: `string | string[]`
|
|
228
|
+
|
|
229
|
+
アスキーアートの色を指定します。
|
|
230
|
+
|
|
231
|
+
- **文字列キーワード:**
|
|
232
|
+
- `'RANDOM'`: ランダムな単色を適用します。
|
|
233
|
+
- `'RAINBOW'`: 虹色のグラデーションを適用します。
|
|
234
|
+
- **文字列配列:** カスタムグラデーションを作成するための色の配列(例: HEX コード、色名)。
|
|
235
|
+
|
|
236
|
+
## コントリビューション
|
|
237
|
+
|
|
238
|
+
コントリビューションを歓迎します!詳細は[コントリビューションガイドライン](CONTRIBUTING.md)をご覧ください。
|
|
239
|
+
|
|
240
|
+
# Contributors
|
|
241
|
+
|
|
242
|
+
[](https://github.com/otoneko1102/nekos/graphs/contributors)
|
package/aa/4w4.txt
ADDED
package/aa/boo.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
∧____∧
|
|
2
|
-
( 0・0 )
|
|
3
|
-
( U U ) ∫
|
|
4
|
-
 ̄ ̄ ̄ ̄
|
|
1
|
+
∧____∧
|
|
2
|
+
( 0・0 )
|
|
3
|
+
( U U ) ∫
|
|
4
|
+
 ̄ ̄ ̄ ̄
|
package/aa/face.txt
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
⠀⠀⠀⠀⢀⠠⠤⠀⢀⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
|
2
|
-
⠀⠀⠐⠀⠐⠀⠀⢀⣾⣿⡇⠀⠀⠀⠀⠀⢀⣼⡇⠀⠀⠀⠀
|
|
3
|
-
⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⣿⠀⠀⠀⠀⣴⣿⣿⠇⠀⠀⠀⠀
|
|
4
|
-
⠀⠀⠀⠀⠀⠀⢠⣿⣿⣿⣇⠀⠀⢀⣾⣿⣿⣿⠀⠀⠀⠀⠀
|
|
5
|
-
⠀⠀⠀⠀⠀⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⠀⠐⠀⡀
|
|
6
|
-
⠀⠀⠀⠀⢰⡿⠉⠀⡜⣿⣿⣿⡿⠿⢿⣿⣿⡃⠀⠀⠂⠄⠀
|
|
7
|
-
⠀⠀⠒⠒⠸⣿⣄⡘⣃⣿⣿⡟⢰⠃⠀⢹⣿⡇⠀⠀⠀⠀⠀
|
|
8
|
-
⠀⠀⠚⠉⠀⠊⠻⣿⣿⣿⣿⣿⣮⣤⣤⣿⡟⠁⠘⠠⠁⠀⠀
|
|
9
|
-
⠀⠀⠀⠀⠀⠠⠀⠀⠈⠙⠛⠛⠛⠛⠛⠁⠀⠒⠤⠀⠀⠀⠀
|
|
10
|
-
⠨⠠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⠀⠀⠀⠀⠀⠀
|
|
11
|
-
⠁⠃⠉
|
|
1
|
+
⠀⠀⠀⠀⢀⠠⠤⠀⢀⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
|
2
|
+
⠀⠀⠐⠀⠐⠀⠀⢀⣾⣿⡇⠀⠀⠀⠀⠀⢀⣼⡇⠀⠀⠀⠀
|
|
3
|
+
⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⣿⠀⠀⠀⠀⣴⣿⣿⠇⠀⠀⠀⠀
|
|
4
|
+
⠀⠀⠀⠀⠀⠀⢠⣿⣿⣿⣇⠀⠀⢀⣾⣿⣿⣿⠀⠀⠀⠀⠀
|
|
5
|
+
⠀⠀⠀⠀⠀⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⠀⠐⠀⡀
|
|
6
|
+
⠀⠀⠀⠀⢰⡿⠉⠀⡜⣿⣿⣿⡿⠿⢿⣿⣿⡃⠀⠀⠂⠄⠀
|
|
7
|
+
⠀⠀⠒⠒⠸⣿⣄⡘⣃⣿⣿⡟⢰⠃⠀⢹⣿⡇⠀⠀⠀⠀⠀
|
|
8
|
+
⠀⠀⠚⠉⠀⠊⠻⣿⣿⣿⣿⣿⣮⣤⣤⣿⡟⠁⠘⠠⠁⠀⠀
|
|
9
|
+
⠀⠀⠀⠀⠀⠠⠀⠀⠈⠙⠛⠛⠛⠛⠛⠁⠀⠒⠤⠀⠀⠀⠀
|
|
10
|
+
⠨⠠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⠀⠀⠀⠀⠀⠀
|
|
11
|
+
⠁⠃⠉
|
package/aa/hug.txt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
∧_∧
|
|
2
|
-
( ⸝⸝ ˙꒳˙⸝⸝)
|
|
3
|
-
/づ つ
|
|
1
|
+
∧_∧
|
|
2
|
+
( ⸝⸝ ˙꒳˙⸝⸝)
|
|
3
|
+
/づ つ
|
package/aa/love.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
∧_∧
|
|
2
|
-
( > _ < )
|
|
3
|
-
/ つ(⌒ ⌒)`.
|
|
4
|
-
しー \/
|
|
1
|
+
∧_∧
|
|
2
|
+
( > _ < )
|
|
3
|
+
/ つ(⌒ ⌒)`.
|
|
4
|
+
しー \/
|
package/aa/my_cat.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
^ ^
|
|
2
|
-
= ⠈ w⠈ =
|
|
1
|
+
^ ^
|
|
2
|
+
= ⠈ w⠈ =
|
package/aa/neko.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
⣄ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀ ⣄
|
|
2
|
-
⢿⠀⠘⣄⠀ ⠀⠀⠀⠀⠀⠀⠀⠀ ⣄⠘⠀⢿ ⢿
|
|
3
|
-
⢿⠀⠀⠀⠈⠇⠸⠘⠈⠈⠃⠸⠇⠈ ⢿
|
|
4
|
-
⢿ ⠀⠀ ٍ ⠀ ⠈ ⠀w⠀ ⠈⠀ ٍ ⠀⠀⠀ ⠀⢿
|
|
5
|
-
⢿ ⢿
|
|
1
|
+
⣄ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀ ⣄
|
|
2
|
+
⢿⠀⠘⣄⠀ ⠀⠀⠀⠀⠀⠀⠀⠀ ⣄⠘⠀⢿ ⢿
|
|
3
|
+
⢿⠀⠀⠀⠈⠇⠸⠘⠈⠈⠃⠸⠇⠈ ⢿
|
|
4
|
+
⢿ ⠀⠀ ٍ ⠀ ⠈ ⠀w⠀ ⠈⠀ ٍ ⠀⠀⠀ ⠀⢿
|
|
5
|
+
⢿ ⢿
|
package/aa/nya.txt
ADDED
package/aa/nyancat.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-_-_-_-__,------,
|
|
2
|
-
-_-_-_-__| /\_/\
|
|
3
|
-
-_-_-_-_~|_( o wo)
|
|
4
|
-
-_-_-_-_ "" ""
|
|
1
|
+
-_-_-_-__,------,
|
|
2
|
+
-_-_-_-__| /\_/\
|
|
3
|
+
-_-_-_-_~|_( o wo)
|
|
4
|
+
-_-_-_-_ "" ""
|
package/aa/nyancat_fourth.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-_-_-_-__,------,
|
|
2
|
-
-_-_-_-__| /\_/\
|
|
3
|
-
-_-_-_-_~|_( Φ wΦ)
|
|
4
|
-
-_-_-_-_ "" ""
|
|
1
|
+
-_-_-_-__,------,
|
|
2
|
+
-_-_-_-__| /\_/\
|
|
3
|
+
-_-_-_-_~|_( Φ wΦ)
|
|
4
|
+
-_-_-_-_ "" ""
|
package/aa/nyancat_laugh.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
-_-_-_-__,------,
|
|
2
|
-
-_-_-_-__| /\_/\
|
|
3
|
-
-_-_-_-_~|_( ^ w^)
|
|
4
|
-
-_-_-_-_ "" ""
|
|
5
|
-
|
|
1
|
+
-_-_-_-__,------,
|
|
2
|
+
-_-_-_-__| /\_/\
|
|
3
|
+
-_-_-_-_~|_( ^ w^)
|
|
4
|
+
-_-_-_-_ "" ""
|
|
5
|
+
|
package/aa/nyancat_x.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
-_-_-_-__,------,
|
|
2
|
-
-_-_-_-__| /\_/\
|
|
3
|
-
-_-_-_-_~|_( x .x)
|
|
4
|
-
-_-_-_-_ "" ""
|
|
1
|
+
-_-_-_-__,------,
|
|
2
|
+
-_-_-_-__| /\_/\
|
|
3
|
+
-_-_-_-_~|_( x .x)
|
|
4
|
+
-_-_-_-_ "" ""
|
package/aa/o_o.txt
ADDED
package/aa/owo.txt
ADDED
package/aa/reading.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
〃∩ ∧_∧
|
|
2
|
-
⊂⌒( ・ω・)
|
|
3
|
-
\_っ⌒/⌒c
|
|
4
|
-
⌒ ⌒
|
|
1
|
+
〃∩ ∧_∧
|
|
2
|
+
⊂⌒( ・ω・)
|
|
3
|
+
\_っ⌒/⌒c
|
|
4
|
+
⌒ ⌒
|
package/aa/sit_down_cat.txt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
⠀⠀ ∧_∧
|
|
2
|
-
ミ。・ω・ミ
|
|
3
|
-
~ミ_uu ミ
|
|
1
|
+
⠀⠀ ∧_∧
|
|
2
|
+
ミ。・ω・ミ
|
|
3
|
+
~ミ_uu ミ
|
package/aa/sitting.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
╱|、
|
|
2
|
-
(˚ˎ 。7
|
|
3
|
-
|、˜〵
|
|
4
|
-
じしˍ,)ノ
|
|
1
|
+
╱|、
|
|
2
|
+
(˚ˎ 。7
|
|
3
|
+
|、˜〵
|
|
4
|
+
じしˍ,)ノ
|
package/aa/sleeping.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
∧∧ .oO
|
|
2
|
-
〜〈⌒⌒( - -)
|
|
1
|
+
∧∧ .oO
|
|
2
|
+
〜〈⌒⌒( - -)
|
package/aa/zzz.txt
ADDED
package/bin/nekos.js
CHANGED
|
@@ -2,15 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
import { program } from "commander";
|
|
4
4
|
import nekos from "../dist/index.js";
|
|
5
|
+
import { consola } from "consola";
|
|
6
|
+
import { isPackageLatest } from "is-package-latest";
|
|
7
|
+
import pkg from "../package.json" with { type: "json" };
|
|
8
|
+
|
|
9
|
+
async function versionInfo(p) {
|
|
10
|
+
const res = await isPackageLatest(p);
|
|
11
|
+
if (!res.isLatest)
|
|
12
|
+
consola.warn(
|
|
13
|
+
`New version released! =^・w・^=\n\n${res.currentVersion} --> ${res.latestVersion}\n\nnpm install -g ${res.name}@latest`,
|
|
14
|
+
);
|
|
15
|
+
return p.version;
|
|
16
|
+
}
|
|
5
17
|
|
|
6
18
|
program
|
|
19
|
+
.version(
|
|
20
|
+
await versionInfo(pkg),
|
|
21
|
+
"-v, --version",
|
|
22
|
+
"Check the current version.",
|
|
23
|
+
)
|
|
7
24
|
.option(
|
|
8
25
|
"-i, --id <id>",
|
|
9
|
-
"Display a specific cat by its ID (filename without .txt)"
|
|
26
|
+
"Display a specific cat by its ID (filename without .txt)",
|
|
10
27
|
)
|
|
11
28
|
.option(
|
|
12
29
|
"-c, --colors [colors...]",
|
|
13
|
-
'Specify colors (e.g., RANDOM, RAINBOW, #ff00ff, "#ff0000 #00ff00")'
|
|
30
|
+
'Specify colors (e.g., RANDOM, RAINBOW, #ff00ff, "#ff0000 #00ff00")',
|
|
14
31
|
);
|
|
15
32
|
|
|
16
33
|
program.parse(process.argv);
|
|
@@ -24,7 +41,7 @@ if (options.id) {
|
|
|
24
41
|
|
|
25
42
|
if (options.colors) {
|
|
26
43
|
const finalColors = options.colors.flatMap((colorString) =>
|
|
27
|
-
colorString.split(" ")
|
|
44
|
+
colorString.split(" "),
|
|
28
45
|
);
|
|
29
46
|
|
|
30
47
|
if (finalColors.length === 1) {
|
package/package.json
CHANGED
|
@@ -1,56 +1,60 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "nekos",
|
|
3
|
-
"version": "3.1
|
|
4
|
-
"description": "Let's have cute cats mess around in the log!",
|
|
5
|
-
"bin": {
|
|
6
|
-
"nekos": "bin/nekos.js"
|
|
7
|
-
},
|
|
8
|
-
"type": "module",
|
|
9
|
-
"main": "dist/index.cjs",
|
|
10
|
-
"module": "dist/index.js",
|
|
11
|
-
"exports": {
|
|
12
|
-
"import": "./dist/index.js",
|
|
13
|
-
"require": "./dist/index.cjs"
|
|
14
|
-
},
|
|
15
|
-
"types": "dist/index.d.ts",
|
|
16
|
-
"scripts": {
|
|
17
|
-
"test": "cross-env FORCE_COLOR=1 node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
18
|
-
"clean": "rimraf dist",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"build
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "nekos",
|
|
3
|
+
"version": "3.2.1",
|
|
4
|
+
"description": "Let's have cute cats mess around in the log!",
|
|
5
|
+
"bin": {
|
|
6
|
+
"nekos": "bin/nekos.js"
|
|
7
|
+
},
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "dist/index.cjs",
|
|
10
|
+
"module": "dist/index.js",
|
|
11
|
+
"exports": {
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"types": "dist/index.d.ts",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "cross-env FORCE_COLOR=1 node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
18
|
+
"clean": "rimraf dist",
|
|
19
|
+
"format": "prettier --write .",
|
|
20
|
+
"format:check": "prettier --check .",
|
|
21
|
+
"build:types": "tsc",
|
|
22
|
+
"build:js": "node scripts/build.js",
|
|
23
|
+
"build": "npm run clean && npm run format && npm run build:types && npm run build:js"
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/otoneko1102/nekos.git"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"log",
|
|
31
|
+
"kawaii",
|
|
32
|
+
"joke",
|
|
33
|
+
"cat",
|
|
34
|
+
"cats",
|
|
35
|
+
"neko",
|
|
36
|
+
"nekos"
|
|
37
|
+
],
|
|
38
|
+
"author": "otoneko.",
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/otoneko1102/nekos/issues"
|
|
42
|
+
},
|
|
43
|
+
"homepage": "https://github.com/otoneko1102/nekos#readme",
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@randplus/color": "^3.0.0",
|
|
46
|
+
"commander": "^14.0.0",
|
|
47
|
+
"consola": "^3.4.2",
|
|
48
|
+
"gradient-string": "^3.0.0",
|
|
49
|
+
"is-package-latest": "^1.0.0"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/node": "^24.3.0",
|
|
53
|
+
"cross-env": "^10.0.0",
|
|
54
|
+
"esbuild": "^0.25.9",
|
|
55
|
+
"jest": "^30.1.1",
|
|
56
|
+
"prettier": "3.6.2",
|
|
57
|
+
"rimraf": "^6.0.1",
|
|
58
|
+
"typescript": "^5.9.2"
|
|
59
|
+
}
|
|
60
|
+
}
|
package/private/test.js
ADDED