Skip to content

Commit 9e340dd

Browse files
committed
Update README.md
1 parent 2d135f3 commit 9e340dd

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div align="center">
22

3-
<img width="814" src="https://raw.githubusercontent.com/kabeep/exception/master/docs/images/logo-dark.png" alt="logo-dark">
3+
<img width="814" src="assets/logo-dark.png" alt="logo-dark">
44

55
Exception is a custom error library for Node.js that provides a more flexible and customizable way of handling errors.
66

@@ -17,9 +17,7 @@ English | [简体中文](README.zh-CN.md)
1717

1818
![Alt](https://repobeats.axiom.co/api/embed/92224457b32c02414aa34c21a923f17f95019cd4.svg "Repobeats analytics image")
1919

20-
<img width="814" src="https://raw.githubusercontent.com/kabeep/exception/master/docs/images/Inheritance-and-prototype-chain.png" alt="inheritance-tree">
21-
22-
Inheritance and the prototype chain
20+
<img width="814" src="assets/preview.png" alt="preview.png">
2321

2422
</div>
2523

@@ -37,6 +35,8 @@ The goal of Exception is to transform unexpected occurrences into anticipated ou
3735
It allows Error objects to throw exception and stack information in a more aesthetically pleasing and intuitive manner,
3836
and can also serve as Notify to output critical information in workflows.
3937

38+
<img width="600" src="assets/Inheritance-and-prototype-chain.png" alt="inheritance-tree">
39+
4040
## ⚙️ Installation
4141

4242
```bash
@@ -57,7 +57,7 @@ pnpm add @kabeep/exception
5757

5858
[example](example/default.ts)
5959

60-
![Plain-text-or-Error-object](https://raw.githubusercontent.com/kabeep/exception/master/docs/images/Plain-text-or-Error-object.png)
60+
![Plain-text-or-Error-object](assets/Plain-text-or-Error-object.png)
6161

6262
```javascript
6363
import Exception from '@kabeep/exception';
@@ -73,7 +73,7 @@ throw new Exception(new Error('Argument example'));
7373

7474
[example](example/promise.ts)
7575

76-
![Using-in-Asynchronous-Contexts](https://raw.githubusercontent.com/kabeep/exception/master/docs/images/Using-in-Asynchronous-Contexts.png)
76+
![Using-in-Asynchronous-Contexts](assets/Using-in-Asynchronous-Contexts.png)
7777

7878
```javascript
7979
import Exception from '@kabeep/exception';
@@ -89,7 +89,7 @@ import Exception from '@kabeep/exception';
8989

9090
[example](example/stylish.ts)
9191

92-
![Custom-Styles](https://raw.githubusercontent.com/kabeep/exception/master/docs/images/Custom-Styles.png)
92+
![Custom-Styles](assets/Custom-Styles.png)
9393

9494
```javascript
9595
import Exception from '@kabeep/exception';
@@ -106,7 +106,7 @@ console.log(
106106

107107
[example](example/extends.ts)
108108

109-
![Custom-Exceptions](https://raw.githubusercontent.com/kabeep/exception/master/docs/images/Custom-Exceptions.png)
109+
![Custom-Exceptions](assets/Custom-Exceptions.png)
110110

111111
```javascript
112112
import Exception from '@kabeep/exception';
@@ -128,7 +128,7 @@ console.log(warn);
128128

129129
[example](example/extends.ts)
130130

131-
![Print-Key-Information](https://raw.githubusercontent.com/kabeep/exception/master/docs/images/Print-Key-Information.png)
131+
![Print-Key-Information](assets/Print-Key-Information.png)
132132

133133
```javascript
134134
import Exception from '@kabeep/exception';
@@ -217,4 +217,4 @@ Contributions via Pull Requests or [Issues](https://github.com/kabeep/exception/
217217

218218
## 📄 License
219219

220-
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
220+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

README.zh-CN.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div align="center">
22

3-
<img width="814" src="https://raw.githubusercontent.com/kabeep/exception/master/docs/images/logo-dark.png" alt="logo-dark">
3+
<img width="814" src="assets/logo-dark.png" alt="logo-dark">
44

55
Exception 是一个用于 Node.js 的自定义错误库,它提供了一种更加灵活和可定制的错误处理方式。
66

@@ -17,9 +17,7 @@ Exception 是一个用于 Node.js 的自定义错误库,它提供了一种更
1717

1818
![Alt](https://repobeats.axiom.co/api/embed/92224457b32c02414aa34c21a923f17f95019cd4.svg "Repobeats analytics image")
1919

20-
<img width="814" src="https://raw.githubusercontent.com/kabeep/exception/master/docs/images/Inheritance-and-prototype-chain.png" alt="inheritance-tree">
21-
22-
继承与原型链
20+
<img width="814" src="assets/preview.png" alt="preview.png">
2321

2422
</div>
2523

@@ -34,6 +32,8 @@ Exception 的目标是尽可能的将 ~~**例外(Exception)**~~ 变为 **预期(
3432
它允许 _Error_ 对象以更美化与直观的方式将异常信息和栈信息抛出,
3533
也可以作为 _Notify_ 在工作流中打印关键性信息。
3634

35+
<img width="600" src="assets/Inheritance-and-prototype-chain.png" alt="inheritance-tree">
36+
3737
## ⚙️ 安装
3838

3939
```bash
@@ -54,7 +54,7 @@ pnpm add @kabeep/exception
5454

5555
[用例](example/default.ts)
5656

57-
![Plain-text-or-Error-object](https://raw.githubusercontent.com/kabeep/exception/master/docs/images/Plain-text-or-Error-object.png)
57+
![Plain-text-or-Error-object](assets/Plain-text-or-Error-object.png)
5858

5959
```javascript
6060
import Exception from '@kabeep/exception';
@@ -70,7 +70,7 @@ throw new Exception(new Error('Argument example'));
7070

7171
[用例](example/promise.ts)
7272

73-
![Using-in-Asynchronous-Contexts](https://raw.githubusercontent.com/kabeep/exception/master/docs/images/Using-in-Asynchronous-Contexts.png)
73+
![Using-in-Asynchronous-Contexts](assets/Using-in-Asynchronous-Contexts.png)
7474

7575
```javascript
7676
import Exception from '@kabeep/exception';
@@ -86,7 +86,7 @@ import Exception from '@kabeep/exception';
8686

8787
[用例](example/stylish.ts)
8888

89-
![Custom-Styles](https://raw.githubusercontent.com/kabeep/exception/master/docs/images/Custom-Styles.png)
89+
![Custom-Styles](assets/Custom-Styles.png)
9090

9191
```javascript
9292
import Exception from '@kabeep/exception';
@@ -103,7 +103,7 @@ console.log(
103103

104104
[用例](example/extends.ts)
105105

106-
![Custom-Exceptions](https://raw.githubusercontent.com/kabeep/exception/master/docs/images/Custom-Exceptions.png)
106+
![Custom-Exceptions](assets/Custom-Exceptions.png)
107107

108108
```javascript
109109
import Exception from '@kabeep/exception';
@@ -125,7 +125,7 @@ console.log(warn);
125125

126126
[用例](example/extends.ts)
127127

128-
![Print-Key-Information](https://raw.githubusercontent.com/kabeep/exception/master/docs/images/Print-Key-Information.png)
128+
![Print-Key-Information](assets/Print-Key-Information.png)
129129

130130
```javascript
131131
import Exception from '@kabeep/exception';
@@ -214,4 +214,4 @@ console.log(pass.toString());
214214

215215
## 📄 许可
216216

217-
本项目采用 MIT 许可证。详情请见 [LICENSE](LICENSE) 文件。
217+
本项目采用 MIT 许可证。详情请见 [LICENSE](LICENSE) 文件。

assets/preview.png

122 KB
Loading

0 commit comments

Comments
 (0)