w-md2docx 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
@@ -17,8 +17,8 @@ To view documentation or get support, visit [docs](https://yuda-lyu.github.io/w-
17
17
  It provides four entries:
18
18
  - `cvMdToDocx`: convert a Markdown file to a Docx file.
19
19
  - `cvMdTo`: convert Markdown content (with attached assets) to Html/Docx content in base64.
20
- - `ApiServer`: a hapi service (`GET /api/health`, `GET /api/selftest`, `POST /api/convert`) that wraps `cvMdTo`, so machines without Word can convert through it.
21
- - `ApiClient`: a client for `ApiServer`, reading a local Markdown file with its images and writing back the converted files.
20
+ - `rmApiServer`: a hapi service (`GET /api/health`, `GET /api/selftest`, `POST /api/convert`) that wraps `cvMdTo`, so machines without Word can convert through it.
21
+ - `rmApiClient`: a client for `rmApiServer`, reading a local Markdown file with its images and writing back the converted files.
22
22
 
23
23
  ## Installation
24
24
 
@@ -68,11 +68,11 @@ test()
68
68
  import WMd2docx from 'w-md2docx/src/WMd2docx.mjs'
69
69
 
70
70
  //server (Windows with Microsoft Word)
71
- let { server } = await WMd2docx.ApiServer({ port: 22000, token: '' })
71
+ let { server } = await WMd2docx.rmApiServer({ port: 22000, token: '' })
72
72
  console.log(`listening on ${server.info.uri}`)
73
73
 
74
74
  //client (any machine)
75
- let r = await WMd2docx.ApiClient.cvMdTo({
75
+ let r = await WMd2docx.rmApiClient.cvMdTo({
76
76
  host: '127.0.0.1',
77
77
  port: 22000,
78
78
  fpInMd: './test/report.md',