mdsvr 1.0.1 → 1.0.2

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
@@ -29,7 +29,7 @@ Usage: mdsvr [dir] [options]
29
29
 
30
30
  Options:
31
31
  [dir] Root directory to serve (default: .)
32
- -p, --port N Port number (default: 3000)
32
+ -p, --port N Port number (default: 1900)
33
33
  --host H Bind address (default: localhost)
34
34
  -o, --open Auto-open browser
35
35
  -s, --silent Suppress console output
package/dist/cli.js CHANGED
@@ -6,7 +6,7 @@ import { fileURLToPath } from "node:url";
6
6
  function parseArgs(argv) {
7
7
  const args = {
8
8
  dir: ".",
9
- port: 3000,
9
+ port: 1900,
10
10
  host: "localhost",
11
11
  open: false,
12
12
  silent: false,
@@ -49,7 +49,7 @@ Usage: mdsvr [dir] [options]
49
49
 
50
50
  Options:
51
51
  [dir] Root directory to serve (default: .)
52
- -p, --port N Port number (default: 3000)
52
+ -p, --port N Port number (default: 1900)
53
53
  --host H Bind address (default: localhost)
54
54
  -o, --open Auto-open browser
55
55
  -s, --silent Suppress console output
package/dist/server.js CHANGED
@@ -16,7 +16,7 @@ export async function createServer(rootDir, options = {}) {
16
16
  catch (err) {
17
17
  throw new Error(`Directory does not exist: ${absoluteRoot}`);
18
18
  }
19
- const port = options.port ?? 3000;
19
+ const port = options.port ?? 1900;
20
20
  const host = options.host ?? "localhost";
21
21
  return new Promise((resolve, reject) => {
22
22
  const server = http.createServer((req, res) => {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "mdsvr",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Static file server with auto Markdown → HTML rendering",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "bin": {
9
- "mdsvr": "./bin/mdsvr.js"
9
+ "mdsvr": "bin/mdsvr.js"
10
10
  },
11
11
  "exports": {
12
12
  ".": {
@@ -51,6 +51,6 @@
51
51
  "license": "MIT",
52
52
  "repository": {
53
53
  "type": "git",
54
- "url": "https://github.com/satoshiman/mdsvr.git"
54
+ "url": "git+https://github.com/satoshiman/mdsvr.git"
55
55
  }
56
56
  }