Skip to content

Commit 65f79ec

Browse files
Change readme
1 parent 3ec2e62 commit 65f79ec

File tree

6 files changed

+33
-17
lines changed

6 files changed

+33
-17
lines changed

README.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@ npm i -g cli-html
1818
## Example
1919

2020
```sh
21-
html demo.html
21+
html examples/demo.html
2222
```
2323

2424
This will produce the following:
2525

2626
![Screenshot of cli-html](./images/1.png)
2727

28-
![Screenshot of cli-html](./images/2.png)
29-
3028
## Usage as module
3129

3230
```sh
@@ -53,20 +51,20 @@ npm run test
5351

5452
👤**Grigorii Horos**
5553

56-
* Github: [@horosgrisa](https://github.com/horosgrisa)
54+
* Github: [@grigorii-horos](https://github.com/grigorii-horos)
5755

5856
## Contributing
5957

6058
Contributions, issues and feature requests are welcome!
6159

62-
Feel free to check [issues page](https://github.com/horosgrisa/cli-html/issues).
60+
Feel free to check [issues page](https://github.com/grigorii-horos/cli-html/issues).
6361

6462
## Show your support
6563

6664
Give a ⭐️ if this project helped you!
6765

6866
## License
6967

70-
Copyright © 2019 [Grigorii Horos](https://github.com/horosgrisa).
68+
Copyright © 2019 [Grigorii Horos](https://github.com/grigorii-horos).
7169

72-
This project is [GPL-3.0-or-later](https://github.com/horosgrisa/cli-html/blob/master/LICENSE) licensed.
70+
This project is [GPL-3.0-or-later](https://github.com/grigorii-horos/cli-html/blob/master/LICENSE) licensed.

images/1.png

125 KB
Loading

images/2.png

-50 KB
Binary file not shown.

index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ const htmlToCli = (rawHTML) => {
1515
const clobalConfig = getGlobalConfig(document);
1616

1717
return `\n${indentify(' ')(
18-
(
19-
renderTag(document, clobalConfig) || { value: '' }
20-
).value,
18+
(renderTag(document, clobalConfig) || { value: '' }).value,
2119
)}\n\n`;
2220
};
2321

test.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<table border="1">
2+
<thead>
3+
<tr>
4+
<th colspan="2" rowspan="2">
5+
This header spans two columns and two rows
6+
</th>
7+
<th>Header A</th>
8+
</tr>
9+
<tr>
10+
<th>Header B</th>
11+
</tr>
12+
</thead>
13+
<tbody>
14+
<tr>
15+
<td>Cell A</td>
16+
<td>Cell B</td>
17+
<td>Cell C</td>
18+
</tr>
19+
</tbody>
20+
</table>

test/list.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
/* eslint-disable node/no-unsupported-features/es-syntax */
22
/* eslint-disable node/no-unpublished-import */
3-
import test from "ava";
3+
import test from 'ava';
44

5-
import { getListSymbol, getListType } from "../lib/utils/list";
5+
import { getListSymbol, getListType } from '../lib/utils/list';
66

77
test("should be 'disc' for ['disc', 'square']", (t) => {
8-
t.is(getListType("disc", "square"), "disc");
8+
t.is(getListType('disc', 'square'), 'disc');
99
});
1010

1111
test("should be 'circle' for [null, 'square']", (t) => {
12-
t.is(getListType(null, "square"), "circle");
12+
t.is(getListType(null, 'square'), 'circle');
1313
});
1414

1515
test("should be 'disc' for [null, 'void']", (t) => {
16-
t.is(getListType(null, "void"), "disc");
16+
t.is(getListType(null, 'void'), 'disc');
1717
});
1818

1919
test("should be 'disc' for [null, null]", (t) => {
20-
t.is(getListType(null, null), "disc");
20+
t.is(getListType(null, null), 'disc');
2121
});
2222

2323
test("should be '•' for 'disc'", (t) => {
24-
t.is(getListSymbol("disc"), "•");
24+
t.is(getListSymbol('disc'), '•');
2525
});

0 commit comments

Comments
 (0)