0.0.9 • Published 9 months ago
interview_md v0.0.9
How to use
npx interview_md convert --interviewee "A" --interviewer "B"
Excuting this CLI Command in the local environment
Preparing
$ node -v
v18.16.0
Excute this CLI
md convert --interviewee "A" --interviewer "B"
Example Output
This CLI tool expects strings in the following format:
**A** 今日は、初めての海外旅行についてお話しいただけますか?
**B** もちろん、喜んで話しますよ!
**A** ありがとうございます。まず、どの国に行ったのですか?
In this example, this CLI tool yeilds the following output and write them in a textfile result.txt
:
<div class="media">
<img src="https://admin.zuuonline.com/media/image/" width="600" height="400" loading="lazy" alt="">
<div class="caption">(画像=)</div>
</div>
<div class="name-box">
<div class="inner">
<div class="name"></div>
</div>
<div class="description"><a href="" target="_blank" rel="noopener">株式会社〇〇</a>代表取締役社長<br></div>
</div>
<div class="name-box">
<div class="inner">
<div class="name"></div>
<div class="description"></div>
</div>
</div>
今日は、初めての海外旅行についてお話しいただけますか?
**――もちろん、喜んで話しますよ! **
ありがとうございます。まず、どの国に行ったのですか?
options
-e or --interviewee (required): name of interviewee
-i or --interviewer (required): name of interviewer
-f or --file (optional): the name of input file. When this option is not specified, this CLI tool try to read a file whose name is "body.txt". If body.txt is not found, this CLI throws error.