nekos 3.2.2 → 3.2.3
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-ja.md +37 -0
- package/CONTRIBUTING.md +4 -38
- package/README-ja.md +129 -0
- package/README.md +2 -115
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +10 -10
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# コントリビューションの方法 (日本語)
|
|
2
|
+
|
|
3
|
+
[English](./CONTRIBUTING.md) | **日本語**
|
|
4
|
+
|
|
5
|
+
コントリビューションを歓迎します!新しいアスキーアートを追加したい場合は、以下のルールに従ってください。
|
|
6
|
+
|
|
7
|
+
## 必要な手順
|
|
8
|
+
|
|
9
|
+
### セットアップ
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### テスト
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm run build
|
|
19
|
+
npm run test
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## 新しいアスキーアートの追加
|
|
23
|
+
|
|
24
|
+
`aa/` ディレクトリに新しい猫のアスキーアートを追加できます。ファイルを追加するにはプルリクエストが必要です。
|
|
25
|
+
|
|
26
|
+
> [!Warning]
|
|
27
|
+
> `requests` や `dev` ブランチにアスキーアートのためのプルリクエストを送信しないでください。 `main` ブランチに送信をお願いします。
|
|
28
|
+
|
|
29
|
+
### コントリビューションのルール
|
|
30
|
+
|
|
31
|
+
システムは、あなたのプルリクエストが以下のルールに従っているかを自動的にチェックします。
|
|
32
|
+
|
|
33
|
+
1. **既存のファイルを変更・削除しないこと**:`aa/` ディレクトリ内の既存のファイルは変更したり削除したりしないでください。
|
|
34
|
+
2. **ユニークなファイル名**:ファイル名は他と重複しないユニークなもので、必ず `.txt` で終わるようにしてください。
|
|
35
|
+
3. **使用可能な文字**:ファイル名(拡張子を除く)には、**小文字の英字 (a-z)**、**数字 (0-9)**、**アンダースコア (_)**、**ハイフン (-)** のみ使用できます。
|
|
36
|
+
|
|
37
|
+
ご協力ありがとうございます! 🐱
|
package/CONTRIBUTING.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# How to Contribute
|
|
2
2
|
|
|
3
|
+
**English** | [日本語](./CONTRIBUTING-ja.md)
|
|
4
|
+
|
|
3
5
|
We welcome contributions! If you want to add a new ASCII art, please follow these rules.
|
|
4
6
|
|
|
5
7
|
## Required Process
|
|
@@ -21,7 +23,8 @@ npm run test
|
|
|
21
23
|
|
|
22
24
|
You can add new cat ASCII art to the `aa/` directory. A pull request is required to add a file.
|
|
23
25
|
|
|
24
|
-
>
|
|
26
|
+
> [!Warning]
|
|
27
|
+
> Do not send a pull request for ASCII art to `requests` or `dev` branch. Please send to `main` branch.
|
|
25
28
|
|
|
26
29
|
### Contribution Rules
|
|
27
30
|
|
|
@@ -32,40 +35,3 @@ Our system will automatically check your pull request to ensure it follows these
|
|
|
32
35
|
3. The filename (without the extension) can only contain **lowercase letters (a-z)**, **numbers (0-9)**, **underscores (_)**, and **hyphens (-)**.
|
|
33
36
|
|
|
34
37
|
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-ja.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
## nekos 🐱 (日本語)
|
|
2
|
+
|
|
3
|
+
[](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
|
+
[English](./README.md) | **日本語**
|
|
13
|
+
|
|
14
|
+
コンソールに猫のアスキーアートを表示する、シンプルな CLI ツールです。
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
## インストール
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install nekos
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## 使い方
|
|
25
|
+
|
|
26
|
+
```javascript
|
|
27
|
+
// ESM
|
|
28
|
+
import nekos from "nekos";
|
|
29
|
+
// CJS
|
|
30
|
+
const nekos = require("nekos").default;
|
|
31
|
+
|
|
32
|
+
// ランダムな猫を表示
|
|
33
|
+
nekos();
|
|
34
|
+
|
|
35
|
+
// IDを指定して特定の猫を表示
|
|
36
|
+
nekos({ id: "my_cat" });
|
|
37
|
+
|
|
38
|
+
// 虹色のグラデーションで猫を表示
|
|
39
|
+
nekos({ colors: "RAINBOW" });
|
|
40
|
+
|
|
41
|
+
// ランダムな単色で猫を表示
|
|
42
|
+
nekos({ colors: "RANDOM" });
|
|
43
|
+
|
|
44
|
+
// カスタムグラデーションで猫を表示
|
|
45
|
+
nekos({ colors: ["#ff00ff", "#00ffff"] });
|
|
46
|
+
|
|
47
|
+
// IDを指定した猫に、2色のランダムなグラデーションを適用
|
|
48
|
+
nekos({ id: "sad_cat", colors: ["RANDOM", "RANDOM"] });
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
[ESM Example - demo.js](test/demo.js)
|
|
52
|
+
[CJS Example - demo.cjs](test/demo.cjs)
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## コマンドラインでの使い方
|
|
57
|
+
|
|
58
|
+
コマンドラインで使うには、パッケージをグローバルインストールするか、`npx`を利用します。
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# グローバルインストール
|
|
62
|
+
npm install -g nekos
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### 実行例
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
# ランダムな猫を表示
|
|
69
|
+
nekos
|
|
70
|
+
|
|
71
|
+
# IDを指定して特定の猫を表示
|
|
72
|
+
nekos --id my_cat
|
|
73
|
+
nekos -i
|
|
74
|
+
|
|
75
|
+
# 虹色のグラデーションで猫を表示
|
|
76
|
+
nekos --colors RAINBOW
|
|
77
|
+
nekos -c RAINBOW
|
|
78
|
+
|
|
79
|
+
# 2色のランダムなグラデーションで猫を表示
|
|
80
|
+
nekos --colors RANDOM RANDOM
|
|
81
|
+
nekos -c RANDOM RANDOM
|
|
82
|
+
|
|
83
|
+
# IDを指定した猫にカスタムグラデーションを適用
|
|
84
|
+
nekos --id sad_cat --colors "#ff00ff" "#00ffff"
|
|
85
|
+
nekos -i sad_cat -c "#ff00ff" "#00ffff"
|
|
86
|
+
|
|
87
|
+
# グローバルインストールなしでnpxを使っても実行できます
|
|
88
|
+
npx nekos --colors "#ff00ff #00ffff"
|
|
89
|
+
npx nekos -c "#ff00ff" "#00ffff"
|
|
90
|
+
|
|
91
|
+
# 現在のバージョンを確認
|
|
92
|
+
nekos --version
|
|
93
|
+
nekos -v
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## API
|
|
99
|
+
|
|
100
|
+
`nekos(options)`
|
|
101
|
+
|
|
102
|
+
### options
|
|
103
|
+
|
|
104
|
+
型: `object`
|
|
105
|
+
|
|
106
|
+
#### id
|
|
107
|
+
|
|
108
|
+
型: `string`
|
|
109
|
+
|
|
110
|
+
表示したいアスキーアートの ID(`.txt`を除いたファイル名)。指定しない場合は、ランダムな猫が表示されます。
|
|
111
|
+
|
|
112
|
+
#### colors
|
|
113
|
+
|
|
114
|
+
型: `string | string[]`
|
|
115
|
+
|
|
116
|
+
アスキーアートの色を指定します。
|
|
117
|
+
|
|
118
|
+
- **文字列キーワード:**
|
|
119
|
+
- `'RANDOM'`: ランダムな単色を適用します。
|
|
120
|
+
- `'RAINBOW'`: 虹色のグラデーションを適用します。
|
|
121
|
+
- **文字列配列:** カスタムグラデーションを作成するための色の配列(例: HEX コード、色名)。
|
|
122
|
+
|
|
123
|
+
## コントリビューション
|
|
124
|
+
|
|
125
|
+
コントリビューションを歓迎します!詳細は[コントリビューションガイドライン](CONTRIBUTING.md)をご覧ください。
|
|
126
|
+
|
|
127
|
+
# 貢献者
|
|
128
|
+
|
|
129
|
+
[](https://github.com/otoneko1102/nekos/graphs/contributors)
|
package/README.md
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
|
|
10
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
11
|
|
|
12
|
+
**English** | [日本語](./README-ja.md)
|
|
13
|
+
|
|
12
14
|
A simple CLI tool to display cat ASCII art in your console.
|
|
13
15
|
|
|
14
16
|

|
|
@@ -122,121 +124,6 @@ Specify the color(s) for the ASCII art.
|
|
|
122
124
|
|
|
123
125
|
Contributions are welcome! Please see the [Contributing Guidelines](CONTRIBUTING.md) for more details.
|
|
124
126
|
|
|
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
127
|
# Contributors
|
|
241
128
|
|
|
242
129
|
[](https://github.com/otoneko1102/nekos/graphs/contributors)
|
package/dist/index.cjs
CHANGED
|
@@ -85,7 +85,7 @@ function nekos(options = {}) {
|
|
|
85
85
|
import_consola.consola.warn("Cannot use the value, 'RAINBOW' in array.");
|
|
86
86
|
}
|
|
87
87
|
processedColors = colors.map(
|
|
88
|
-
(
|
|
88
|
+
(color) => typeof color === "string" && color.toUpperCase() === "RANDOM" ? (0, import_color.hex)("#") : color
|
|
89
89
|
);
|
|
90
90
|
} else {
|
|
91
91
|
processedColors = colors;
|
package/dist/index.js
CHANGED
|
@@ -55,7 +55,7 @@ function nekos(options = {}) {
|
|
|
55
55
|
consola.warn("Cannot use the value, 'RAINBOW' in array.");
|
|
56
56
|
}
|
|
57
57
|
processedColors = colors.map(
|
|
58
|
-
(
|
|
58
|
+
(color) => typeof color === "string" && color.toUpperCase() === "RANDOM" ? hex("#") : color
|
|
59
59
|
);
|
|
60
60
|
} else {
|
|
61
61
|
processedColors = colors;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nekos",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.3",
|
|
4
4
|
"description": "Let's have cute cats mess around in the log!",
|
|
5
5
|
"bin": {
|
|
6
6
|
"nekos": "bin/nekos.js"
|
|
@@ -43,18 +43,18 @@
|
|
|
43
43
|
"homepage": "https://github.com/otoneko1102/nekos#readme",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@randplus/color": "^3.0.0",
|
|
46
|
-
"commander": "^14.0.
|
|
46
|
+
"commander": "^14.0.3",
|
|
47
47
|
"consola": "^3.4.2",
|
|
48
48
|
"gradient-string": "^3.0.0",
|
|
49
|
-
"is-package-latest": "^
|
|
49
|
+
"is-package-latest": "^2.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@types/node": "^
|
|
53
|
-
"cross-env": "^10.
|
|
54
|
-
"esbuild": "^0.
|
|
55
|
-
"jest": "^30.
|
|
56
|
-
"prettier": "3.
|
|
57
|
-
"rimraf": "^6.
|
|
58
|
-
"typescript": "^5.9.
|
|
52
|
+
"@types/node": "^25.2.3",
|
|
53
|
+
"cross-env": "^10.1.0",
|
|
54
|
+
"esbuild": "^0.27.3",
|
|
55
|
+
"jest": "^30.2.0",
|
|
56
|
+
"prettier": "3.8.1",
|
|
57
|
+
"rimraf": "^6.1.3",
|
|
58
|
+
"typescript": "^5.9.3"
|
|
59
59
|
}
|
|
60
60
|
}
|