1.0.15 • Published 23 days ago

tinymdserv v1.0.15

Weekly downloads
-
License
ISC
Repository
github
Last release
23 days ago

TinyMDServ

Install

npm install -g tinymdserv

Edit

  • Create home page docs/index.md
# Home

Hello
  • Create template docs/template.ejs
<html>
<head>
<meta charset="utf-8" />
<meta lang="en" />
<title>
<%=title %>
</title>
</head>
<body>
<%-content %>
</body>
</html>
  • Create template docs/search.ejs
<html>
<head>
<meta charset="utf-8" />
<meta lang="en" />
<title>
<%=title %>
</title>
</head>
<body>
<ul>
<% content.forEach(path => { %><li><a href='<%-path %>'><%-path %></a></li>
<% }) %></ul>
</body>
</html>

Run

tinymdserv [<port_number>] [<docs_full_path>]
  • Default port number is 80.
  • Default document path is docs under current path.

Example

tinymdserv 80
tinymdserv 80 C:\docs
node app.js 8080 ./docs
1.0.15

23 days ago

1.0.14

6 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

10 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago