typing.works 0.3.0-beta.4 → 0.3.0-beta.5

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/README.md CHANGED
@@ -5,12 +5,20 @@ Typing practice from [typing.works](https://typing.works), in your terminal —
5
5
 
6
6
  ## 설치 · Install
7
7
 
8
+ macOS · Linux
9
+
8
10
  ```sh
9
11
  curl -fsSL https://raw.githubusercontent.com/pers-dev/typing.works/main/install.sh | sh
10
12
  ```
11
13
 
12
- 아무것도 미리 깔 필요가 없습니다(macOS · Linux). 실행 파일을 받아 해시를 대조하고 `~/.local/bin` 에 둡니다 — 그다음 `typingworks`.
13
- Nothing else needed. Downloads the binary, verifies its checksum, puts it in `~/.local/bin` — then run `typingworks`.
14
+ Windows 10 · 11 (PowerShell)
15
+
16
+ ```powershell
17
+ irm https://raw.githubusercontent.com/pers-dev/typing.works/main/install.ps1 | iex
18
+ ```
19
+
20
+ 아무것도 미리 깔 필요가 없습니다. 실행 파일을 받아 해시를 대조하고 `~/.local/bin`(Windows 는 `%LOCALAPPDATA%\typingworks\bin`)에 둡니다 — 그다음 `typingworks`.
21
+ Nothing else needed. Downloads the binary, verifies its checksum, puts it on your PATH — then run `typingworks`.
14
22
 
15
23
  다른 방법 · Other ways:
16
24
 
@@ -20,8 +28,9 @@ npm i -g typing.works # Node · install → `typingworks
20
28
  brew install pers-dev/tap/typing.works # Homebrew
21
29
  ```
22
30
 
23
- macOS (Apple Silicon · Intel) · Linux (x64 · arm64 · 32-bit x86). 통신(로그인·기록)에 `curl`, 기록 올리기에 `gzip` 을 씁니다.
24
- Windows는 아직입니다 — WSL에서 돌아갑니다.
31
+ macOS (Apple Silicon · Intel) · Linux (x64 · arm64 · 32-bit x86) · Windows 10 1809+ · 11 (x64 · arm64, Windows Terminal 권장).
32
+ 통신(로그인 · 기록)에만 `curl` 을 씁니다(Windows 10+ 에 들어 있습니다). 인터넷 없이도 연습 · 판정 · 기록은 그대로 됩니다.
33
+ Works offline; `curl` is used only for sign-in, records and ranked (built into Windows 10+).
25
34
 
26
35
  ## 쓰는 법 · Keys
27
36
 
@@ -61,7 +70,7 @@ Checks npm for a newer version (every 6 hours) and shows it top-right. Press **^
61
70
  | brew | `brew upgrade typing.works` |
62
71
  | npm i -g | `npm i -g typing.works@latest` |
63
72
  | npx | `npx typing.works@latest` |
64
- | 설치 스크립트 · install script | 같은 스크립트를 다시 · reruns `install.sh` |
73
+ | 설치 스크립트 · install script | 같은 스크립트를 다시 · reruns `install.sh` / `install.ps1` |
65
74
 
66
75
  끄기 · disable: `TW_NO_UPDATE_CHECK=1`
67
76
 
@@ -5,10 +5,10 @@ const { spawnSync } = require("child_process");
5
5
  const path = require("path");
6
6
  const fs = require("fs");
7
7
  const key = `${process.platform}-${process.arch}`;
8
- const exe = path.join(__dirname, "..", "vendor", key, "typingworks");
8
+ const exe = path.join(__dirname, "..", "vendor", key, process.platform === "win32" ? "typingworks.exe" : "typingworks");
9
9
  if (!fs.existsSync(exe)) {
10
- console.error(`typing.works: ${key} 은 아직 지원하지 않습니다 — macOS · Linux(x64 · arm64 · x86). Windows 는 WSL 에서 돌아갑니다.`);
11
- console.error(`typing.works: ${key} is not supported yet — macOS and Linux only (use WSL on Windows).`);
10
+ console.error(`typing.works: ${key} 은 아직 지원하지 않습니다 — macOS · Linux(x64 · arm64 · x86) · Windows(x64 · arm64).`);
11
+ console.error(`typing.works: ${key} is not supported yet — macOS, Linux and Windows (x64 · arm64).`);
12
12
  process.exit(1);
13
13
  }
14
14
  try { fs.accessSync(exe, fs.constants.X_OK); } catch { try { fs.chmodSync(exe, 0o755); } catch {} }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "typing.works",
3
- "version": "0.3.0-beta.4",
3
+ "version": "0.3.0-beta.5",
4
4
  "description": "typing.works in your terminal — Korean & English typing practice, records, stats and ranked matches",
5
5
  "bin": {
6
6
  "typing.works": "bin/typing.works.js",
7
7
  "typingworks": "bin/typing.works.js"
8
8
  },
9
9
  "files": ["bin", "vendor", "README.md", "LICENSE"],
10
- "os": ["darwin", "linux"],
10
+ "os": ["darwin", "linux", "win32"],
11
11
  "cpu": ["arm64", "x64", "ia32"],
12
12
  "engines": { "node": ">=14" },
13
13
  "license": "SEE LICENSE IN LICENSE",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file