Skip to content

Commit 47da326

Browse files
ovflowdSEWeiTung
andauthored
chore(knowledgbe/blog): removed deprecated knowledgebase (#4999)
* chore(knowledgebase): removed the outdated knowledgebase * chore(blog): removed translated blogs as we should not translate blogs * chore(knowledge): removed last references to the knowledgebase * chore(remark): fixed warning complaints Co-authored-by: Maledong <[email protected]>
1 parent a65df34 commit 47da326

File tree

154 files changed

+94
-10277
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+94
-10277
lines changed

locale/en/docs/guides/blocking-vs-non-blocking.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ layout: docs.hbs
88
This overview covers the difference between **blocking** and **non-blocking**
99
calls in Node.js. This overview will refer to the event loop and libuv but no
1010
prior knowledge of those topics is required. Readers are assumed to have a
11-
basic understanding of the JavaScript language and Node.js [callback pattern](/en/knowledge/getting-started/control-flow/what-are-callbacks/).
11+
basic understanding of the JavaScript language and Node.js callback pattern.
1212

1313
> "I/O" refers primarily to interaction with the system's disk and
1414
> network supported by [libuv](https://libuv.org/).
@@ -39,15 +39,15 @@ execute **asynchronously**.
3939
Using the File System module as an example, this is a **synchronous** file read:
4040

4141
```js
42-
const fs = require('fs');
43-
const data = fs.readFileSync('/file.md'); // blocks here until file is read
42+
const fs = require("fs");
43+
const data = fs.readFileSync("/file.md"); // blocks here until file is read
4444
```
4545

4646
And here is an equivalent **asynchronous** example:
4747

4848
```js
49-
const fs = require('fs');
50-
fs.readFile('/file.md', (err, data) => {
49+
const fs = require("fs");
50+
fs.readFile("/file.md", (err, data) => {
5151
if (err) throw err;
5252
});
5353
```
@@ -62,17 +62,17 @@ shown.
6262
Let's expand our example a little bit:
6363

6464
```js
65-
const fs = require('fs');
66-
const data = fs.readFileSync('/file.md'); // blocks here until file is read
65+
const fs = require("fs");
66+
const data = fs.readFileSync("/file.md"); // blocks here until file is read
6767
console.log(data);
6868
moreWork(); // will run after console.log
6969
```
7070

7171
And here is a similar, but not equivalent asynchronous example:
7272

7373
```js
74-
const fs = require('fs');
75-
fs.readFile('/file.md', (err, data) => {
74+
const fs = require("fs");
75+
fs.readFile("/file.md", (err, data) => {
7676
if (err) throw err;
7777
console.log(data);
7878
});
@@ -109,12 +109,12 @@ There are some patterns that should be avoided when dealing with I/O. Let's look
109109
at an example:
110110

111111
```js
112-
const fs = require('fs');
113-
fs.readFile('/file.md', (err, data) => {
112+
const fs = require("fs");
113+
fs.readFile("/file.md", (err, data) => {
114114
if (err) throw err;
115115
console.log(data);
116116
});
117-
fs.unlinkSync('/file.md');
117+
fs.unlinkSync("/file.md");
118118
```
119119

120120
In the above example, `fs.unlinkSync()` is likely to be run before
@@ -123,11 +123,11 @@ better way to write this, which is completely **non-blocking** and guaranteed to
123123
execute in the correct order is:
124124

125125
```js
126-
const fs = require('fs');
127-
fs.readFile('/file.md', (readFileErr, data) => {
126+
const fs = require("fs");
127+
fs.readFile("/file.md", (readFileErr, data) => {
128128
if (readFileErr) throw readFileErr;
129129
console.log(data);
130-
fs.unlink('/file.md', (unlinkErr) => {
130+
fs.unlink("/file.md", (unlinkErr) => {
131131
if (unlinkErr) throw unlinkErr;
132132
});
133133
});

locale/en/knowledge/HTTP/clients/how-to-access-query-string-parameters.md

Lines changed: 0 additions & 56 deletions
This file was deleted.

locale/en/knowledge/HTTP/clients/how-to-create-a-HTTP-request.md

Lines changed: 0 additions & 99 deletions
This file was deleted.

locale/en/knowledge/HTTP/servers/how-to-create-a-HTTP-server.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

locale/en/knowledge/HTTP/servers/how-to-create-a-HTTPS-server.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

locale/en/knowledge/HTTP/servers/how-to-handle-multipart-form-data.md

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)