specv 0.1.0 → 0.1.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/README.md +5 -10
- package/dist/server/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# specv
|
|
2
2
|
|
|
3
3
|
カレントディレクトリの Markdown ファイルを GitHub 風にブラウザプレビューする CLI ツール。
|
|
4
4
|
|
|
@@ -17,22 +17,17 @@
|
|
|
17
17
|
## Install
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
|
|
21
|
-
git clone https://github.com/daiki-beppu/mdv.git
|
|
22
|
-
cd mdv
|
|
23
|
-
pnpm install
|
|
24
|
-
pnpm build
|
|
25
|
-
npm link
|
|
20
|
+
npm install -g specv
|
|
26
21
|
```
|
|
27
22
|
|
|
28
23
|
## Usage
|
|
29
24
|
|
|
30
25
|
```bash
|
|
31
26
|
# カレントディレクトリの .md をプレビュー
|
|
32
|
-
|
|
27
|
+
specv
|
|
33
28
|
|
|
34
29
|
# ポート指定
|
|
35
|
-
|
|
30
|
+
specv -p 3000
|
|
36
31
|
```
|
|
37
32
|
|
|
38
33
|
ブラウザが自動で開き、Markdown ファイルを GitHub 風にレンダリング表示します。
|
|
@@ -54,7 +49,7 @@ Express Server (API) ─── React SPA (Vite build)
|
|
|
54
49
|
|
|
55
50
|
- **Server:** Express 5 + commander (CLI)
|
|
56
51
|
- **Client:** React 19 + Vite + Tailwind CSS v4
|
|
57
|
-
- **Markdown:** react-markdown + remark-gfm
|
|
52
|
+
- **Markdown:** react-markdown + remark-gfm
|
|
58
53
|
- **Search:** fzf (fuzzy finder) + TanStack Hotkeys
|
|
59
54
|
- **Security:** パストラバーサル検証、.md ファイルのみアクセス許可
|
|
60
55
|
|
package/dist/server/cli.js
CHANGED
|
@@ -170,7 +170,7 @@ var openInBrowser = async (url) => {
|
|
|
170
170
|
const mod = await import("open");
|
|
171
171
|
await mod.default(url);
|
|
172
172
|
};
|
|
173
|
-
program.name("specv").description("Local Markdown preview with GitHub-style rendering").version("0.1.
|
|
173
|
+
program.name("specv").description("Local Markdown preview with GitHub-style rendering").version("0.1.1").option("-p, --port <number>", "Port number", "4649").action((options) => {
|
|
174
174
|
const baseDir = process.cwd();
|
|
175
175
|
const startPort = Number.parseInt(options.port, 10);
|
|
176
176
|
const app = express();
|