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 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
- ## Adding New ASCII Art
6
-
7
- You can add new cat ASCII art to the `aa/` directory. A pull request is required to add a file.
8
-
9
- > ⚠ Do not send a pull request for ASCII art to `requests` or `dev` branch. Please send to `main` branch.
10
-
11
- ### Contribution Rules
12
-
13
- Our system will automatically check your pull request to ensure it follows these rules:
14
-
15
- 1. **Do not modify or delete** existing files in the `aa/` directory.
16
- 2. The filename must be **unique** and end with the `.txt` extension.
17
- 3. The filename (without the extension) can only contain **lowercase letters (a-z)**, **numbers (0-9)**, **underscores (_)**, and **hyphens (-)**.
18
-
19
- Thank you for your contribution! 🐱
20
-
21
- ---
22
-
23
- # コントリビューションの方法 (日本語)
24
-
25
- コントリビューションを歓迎します!新しいアスキーアートを追加したい場合は、以下のルールに従ってください。
26
-
27
- ## 新しいアスキーアートの追加
28
-
29
- `aa/` ディレクトリに新しい猫のアスキーアートを追加できます。ファイルを追加するにはプルリクエストが必要です。
30
-
31
- > `requests` `dev` ブランチにアスキーアートのためのプルリクエストを送信しないでください。 `main` ブランチに送信をお願いします。
32
-
33
- ### コントリビューションのルール
34
-
35
- システムは、あなたのプルリクエストが以下のルールに従っているかを自動的にチェックします。
36
-
37
- 1. **既存のファイルを変更・削除しないこと**:`aa/` ディレクトリ内の既存のファイルは変更したり削除したりしないでください。
38
- 2. **ユニークなファイル名**:ファイル名は他と重複しないユニークなもので、必ず `.txt` で終わるようにしてください。
39
- 3. **使用可能な文字**:ファイル名(拡張子を除く)には、**小文字の英字 (a-z)**、**数字 (0-9)**、**アンダースコア (_)**、**ハイフン (-)** のみ使用できます。
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
- [![npm version](https://badge.fury.io/js/nekos.svg)](https://badge.fury.io/js/nekos)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
- [![Validate AA Contribution](https://github.com/otoneko1102/nekos/actions/workflows/validate-aa.yml/badge.svg)](https://github.com/otoneko110/nekos/actions/workflows/validate-aa.yml)
6
-
7
- A simple CLI tool to display cat ASCII art in your console.
8
-
9
- ![sample](img/sample.png)
10
-
11
- ## Install
12
-
13
- ```bash
14
- npm install nekos
15
- ```
16
-
17
- ## Usage
18
-
19
- ```javascript
20
- // ESM
21
- import nekos from "nekos";
22
- // CJS
23
- const nekos = require("nekos").default;
24
-
25
- // Log a random cat
26
- nekos();
27
-
28
- // Log a specific cat by ID
29
- nekos({ id: "my_cat" });
30
-
31
- // Log a cat with a rainbow gradient
32
- nekos({ colors: "RAINBOW" });
33
-
34
- // Log a cat with a single random color
35
- nekos({ colors: "RANDOM" });
36
-
37
- // Log a cat with a custom gradient
38
- nekos({ colors: ["#ff00ff", "#00ffff"] });
39
-
40
- // Log a specific cat with two random gradient colors
41
- nekos({ id: "sad_cat", colors: ["RANDOM", "RANDOM"] });
42
- ```
43
-
44
- [ESM Example - demo.js](test/demo.js)
45
- [CJS Example - demo.cjs](test/demo.cjs)
46
-
47
- ---
48
-
49
- ## CLI Usage
50
-
51
- For command line use, either install the package globally or use `npx`.
52
-
53
- ```bash
54
- # Install globally
55
- npm install -g nekos
56
- ```
57
-
58
- ### Examples
59
-
60
- ```bash
61
- # Display a random cat
62
- nekos
63
-
64
- # Display a specific cat by ID
65
- nekos --id my_cat
66
-
67
- # Display a cat with a rainbow gradient
68
- nekos --colors RAINBOW
69
-
70
- # Display a cat with two random gradient colors
71
- nekos --colors RANDOM RANDOM
72
-
73
- # Display a specific cat with a custom gradient
74
- nekos --id sad_cat --colors "#ff00ff" "#00ffff"
75
-
76
- # You can also use npx without a global installation
77
- npx nekos --colors "#ff00ff #00ffff"
78
- ```
79
-
80
- ---
81
-
82
- ## API
83
-
84
- `nekos(options)`
85
-
86
- ### options
87
-
88
- Type: `object`
89
-
90
- #### id
91
-
92
- Type: `string`
93
-
94
- The ID of the ASCII art to display (the filename without the `.txt` extension). If not provided, a random cat will be shown.
95
-
96
- #### colors
97
-
98
- Type: `string | string[]`
99
-
100
- Specify the color(s) for the ASCII art.
101
-
102
- - **String Keywords:**
103
- - `'RANDOM'`: Applies a single random solid color.
104
- - `'RAINBOW'`: Applies a rainbow gradient.
105
- - **String Array:** An array of color strings (e.g., hex codes, color names) to create a custom gradient.
106
-
107
- ## Contributing
108
-
109
- Contributions are welcome! Please see the [Contributing Guidelines](CONTRIBUTING.md) for more details.
110
-
111
- ---
112
-
113
- ## nekos 🐱 (日本語)
114
-
115
- コンソールに猫のアスキーアートを表示する、シンプルな CLI ツールです。
116
-
117
- ## インストール
118
-
119
- ```bash
120
- npm install nekos
121
- ```
122
-
123
- ## 使い方
124
-
125
- ```javascript
126
- // ESM
127
- import nekos from "nekos";
128
- // CJS
129
- const nekos = require("nekos").default;
130
-
131
- // ランダムな猫を表示
132
- nekos();
133
-
134
- // IDを指定して特定の猫を表示
135
- nekos({ id: "my_cat" });
136
-
137
- // 虹色のグラデーションで猫を表示
138
- nekos({ colors: "RAINBOW" });
139
-
140
- // ランダムな単色で猫を表示
141
- nekos({ colors: "RANDOM" });
142
-
143
- // カスタムグラデーションで猫を表示
144
- nekos({ colors: ["#ff00ff", "#00ffff"] });
145
-
146
- // IDを指定した猫に、2色のランダムなグラデーションを適用
147
- nekos({ id: "sad_cat", colors: ["RANDOM", "RANDOM"] });
148
- ```
149
-
150
- [ESM Example - demo.js](test/demo.js)
151
- [CJS Example - demo.cjs](test/demo.cjs)
152
-
153
- ---
154
-
155
- ## コマンドラインでの使い方
156
-
157
- コマンドラインで使うには、パッケージをグローバルインストールするか、`npx`を利用します。
158
-
159
- ```bash
160
- # グローバルインストール
161
- npm install -g nekos
162
- ```
163
-
164
- ### 実行例
165
-
166
- ```bash
167
- # ランダムな猫を表示
168
- nekos
169
-
170
- # IDを指定して特定の猫を表示
171
- nekos --id my_cat
172
-
173
- # 虹色のグラデーションで猫を表示
174
- nekos --colors RAINBOW
175
-
176
- # 2色のランダムなグラデーションで猫を表示
177
- nekos --colors RANDOM RANDOM
178
-
179
- # IDを指定した猫にカスタムグラデーションを適用
180
- nekos --id sad_cat --colors "#ff00ff" "#00ffff"
181
-
182
- # グローバルインストールなしでnpxを使っても実行できます
183
- npx nekos --colors "#ff00ff #00ffff"
184
- ```
185
-
186
- ---
187
-
188
- ## API
189
-
190
- `nekos(options)`
191
-
192
- ### options
193
-
194
- 型: `object`
195
-
196
- #### id
197
-
198
- 型: `string`
199
-
200
- 表示したいアスキーアートの ID(`.txt`を除いたファイル名)。指定しない場合は、ランダムな猫が表示されます。
201
-
202
- #### colors
203
-
204
- 型: `string | string[]`
205
-
206
- アスキーアートの色を指定します。
207
-
208
- - **文字列キーワード:**
209
- - `'RANDOM'`: ランダムな単色を適用します。
210
- - `'RAINBOW'`: 虹色のグラデーションを適用します。
211
- - **文字列配列:** カスタムグラデーションを作成するための色の配列(例: HEX コード、色名)。
212
-
213
- ## コントリビューション
214
-
215
- コントリビューションを歓迎します!詳細は[コントリビューションガイドライン](CONTRIBUTING.md)をご覧ください。
216
-
217
- # Contributors
218
-
219
- [![Contributors](https://contrib.rocks/image?repo=otoneko1102/nekos)](https://github.com/otoneko1102/nekos/graphs/contributors)
1
+ # nekos 🐱
2
+
3
+ [![npm version](https://badge.fury.io/js/nekos.svg)](https://badge.fury.io/js/nekos)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+ [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
6
+ [![Validate AA Contribution](https://github.com/otoneko1102/nekos/actions/workflows/validate-aa.yml/badge.svg)](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
+ ![sample](img/sample.png)
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
+ [![Contributors](https://contrib.rocks/image?repo=otoneko1102/nekos)](https://github.com/otoneko1102/nekos/graphs/contributors)
package/aa/4w4.txt ADDED
@@ -0,0 +1,3 @@
1
+ /\_/\
2
+ (=4w4=)
3
+ (\")_(\")
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
@@ -0,0 +1,4 @@
1
+ /\ /\
2
+ ( o o )
3
+ ( =^= )
4
+ (")_(")~ nya~
package/aa/nyancat.txt CHANGED
@@ -1,4 +1,4 @@
1
- -_-_-_-__,------,
2
- -_-_-_-__| /\_/\
3
- -_-_-_-_~|_( o wo)
4
- -_-_-_-_ "" ""
1
+ -_-_-_-__,------,
2
+ -_-_-_-__| /\_/\
3
+ -_-_-_-_~|_( o wo)
4
+ -_-_-_-_ "" ""
@@ -1,4 +1,4 @@
1
- -_-_-_-__,------,
2
- -_-_-_-__| /\_/\
3
- -_-_-_-_~|_( Φ wΦ)
4
- -_-_-_-_ "" ""
1
+ -_-_-_-__,------,
2
+ -_-_-_-__| /\_/\
3
+ -_-_-_-_~|_( Φ wΦ)
4
+ -_-_-_-_ "" ""
@@ -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
@@ -0,0 +1,3 @@
1
+ /\_/\
2
+ ( o_o )
3
+ > ^ <
package/aa/owo.txt ADDED
@@ -0,0 +1,3 @@
1
+ /\_/\
2
+ ( owo )
3
+ > ^ <
package/aa/reading.txt CHANGED
@@ -1,4 +1,4 @@
1
- 〃∩ ∧_∧
2
- ⊂⌒( ・ω・)
3
- \_っ⌒/⌒c
4
- ⌒ ⌒
1
+ 〃∩ ∧_∧
2
+ ⊂⌒( ・ω・)
3
+ \_っ⌒/⌒c
4
+ ⌒ ⌒
@@ -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
@@ -0,0 +1,3 @@
1
+ |\_._/|
2
+ ( -.- )
3
+ zzz
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.0",
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
- "build:types": "tsc",
20
- "build:js": "node scripts/build.js",
21
- "build": "npm run clean && npm run build:types && npm run build:js"
22
- },
23
- "repository": {
24
- "type": "git",
25
- "url": "git+https://github.com/otoneko1102/nekos.git"
26
- },
27
- "keywords": [
28
- "log",
29
- "kawaii",
30
- "joke",
31
- "cat",
32
- "cats",
33
- "neko",
34
- "nekos"
35
- ],
36
- "author": "otoneko.",
37
- "license": "MIT",
38
- "bugs": {
39
- "url": "https://github.com/otoneko1102/nekos/issues"
40
- },
41
- "homepage": "https://github.com/otoneko1102/nekos#readme",
42
- "dependencies": {
43
- "@randplus/color": "^3.0.0",
44
- "commander": "^14.0.0",
45
- "consola": "^3.4.2",
46
- "gradient-string": "^3.0.0"
47
- },
48
- "devDependencies": {
49
- "@types/node": "^24.3.0",
50
- "cross-env": "^10.0.0",
51
- "esbuild": "^0.25.9",
52
- "jest": "^30.1.1",
53
- "rimraf": "^6.0.1",
54
- "typescript": "^5.9.2"
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
+ }
@@ -0,0 +1,3 @@
1
+ import nekos from "../dist/index.js";
2
+
3
+ nekos({ id: "sad_cat", colors: ["#fff333", "#333fff"] });