Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .markdownlint.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"MD034": false,
"MD035": false,
"MD036": false,
"MD038": false,
"MD039": false,
"MD040": false,
"MD041": false,
Expand Down
2 changes: 1 addition & 1 deletion locale/ar/docs/guides/getting-started-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ server.listen(port, hostname, () => {
});
```

بعد ذلك، قم بتشغيل هذا الخادوم باستعمال الأمر ``` node app.js ```، و قم بزيارة الرابط http://localhost:3000 لترى رسالة مفادها 'Hello World'.
بعد ذلك، قم بتشغيل هذا الخادوم باستعمال الأمر `node app.js`، و قم بزيارة الرابط http://localhost:3000 لترى رسالة مفادها 'Hello World'.
2 changes: 1 addition & 1 deletion locale/en/blog/release/v4.5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ slug: node-v4-5-0
layout: blog-post.hbs
author: Myles Borins
---

<!-- markdownlint-disable -->
### Notable Changes

Semver Minor:
Expand Down
2 changes: 1 addition & 1 deletion locale/en/blog/release/v6.2.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ slug: node-v6-2-1
layout: blog-post.hbs
author: Rod Vagg
---

<!-- markdownlint-disable -->
### Notable changes

* **buffer**: Ignore negative lengths in calls to `Buffer()` and `Buffer.allocUnsafe()`. This fixes a possible security concern (reported by Feross Aboukhadijeh) where user input is passed unchecked to the Buffer constructor or `allocUnsafe()` as it can expose parts of the memory slab used by other Buffers in the application. Note that negative lengths are not supported by the Buffer API and user input to the constructor should always be sanitised and type-checked. (Anna Henningsen) [#7051](https://github.com/nodejs/node/pull/7051)
Expand Down
2 changes: 1 addition & 1 deletion locale/en/docs/guides/getting-started-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ server.listen(port, hostname, () => {
});
```

After that, run your web server using ``` node app.js ```, visit http://localhost:3000, and you will see a message 'Hello World'
After that, run your web server using `node app.js`, visit http://localhost:3000, and you will see a message 'Hello World'
2 changes: 1 addition & 1 deletion locale/en/knowledge/HTTP/servers/how-to-read-POST-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ With the HTML out of the way, we [create a server](/how-do-i-create-a-http-serve

Something important to note is that the event listeners are being added immediately after the request object is received. If you don't immediately set them, then there is a possibility of missing some of the events. If, for example, an event listener was attached from inside a callback, then the `data` and `end` events might be fired in the meantime with no listeners attached!

You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occasionally you will see lines with no data, e.g. `POSTed: `. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently.
You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occasionally you will see lines with no data, e.g. `POSTed:`. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently.

2 changes: 1 addition & 1 deletion locale/fa/docs/guides/getting-started-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ server.listen(port, hostname, () => {
});
```

After that, run your web server using ``` node app.js ```, visit http://localhost:3000, and you will see a message 'Hello World'
After that, run your web server using `node app.js`, visit http://localhost:3000, and you will see a message 'Hello World'
2 changes: 1 addition & 1 deletion locale/fa/knowledge/HTTP/servers/how-to-read-POST-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ With the HTML out of the way, we [create a server](/how-do-i-create-a-http-serve

Something important to note is that the event listeners are being added immediately after the request object is received. If you don't immediately set them, then there is a possibility of missing some of the events. If, for example, an event listener was attached from inside a callback, then the `data` and `end` events might be fired in the meantime with no listeners attached!

You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occasionally you will see lines with no data, e.g. `POSTed: `. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently.
You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occasionally you will see lines with no data, e.g. `POSTed:`. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently.

2 changes: 1 addition & 1 deletion locale/it/docs/guides/getting-started-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ server.listen(port, hostname, () => {
});
```

After that, run your web server using ``` node app.js ```, visit http://localhost:3000, and you will see a message 'Hello World'
After that, run your web server using `node app.js`, visit http://localhost:3000, and you will see a message 'Hello World'
4 changes: 2 additions & 2 deletions locale/ko/docs/guides/getting-started-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ server.listen(port, hostname, () => {
});
```

<!-- After that, run your web server using ``` node app.js ```, visit http://localhost:3000, and you will see a message 'Hello World' -->
그런 다음 ``` node app.js ```를 사용하여 웹 사이트를 실행한 후 <http://localhost:3000>을 방문하면 'Hello World'라는 메시지를 볼 수 있을 것입니다.
<!-- After that, run your web server using `node app.js`, visit http://localhost:3000, and you will see a message 'Hello World' -->
그런 다음 `node app.js`를 사용하여 웹 사이트를 실행한 후 <http://localhost:3000>을 방문하면 'Hello World'라는 메시지를 볼 수 있을 것입니다.
2 changes: 1 addition & 1 deletion locale/ru/about/working-groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ _nan_ в npm. Проект NAN предоставляет уровень абс
Обязанности:
* Сотрудничество с V8 для интеграции `v8_inspector` в Node.js.
* Сотрудничество с V8 для интеграции `trace_event` в Node.js.
* Сотрудничество с Core для совершенствования `async_wrap` и` async_hooks`.
* Сотрудничество с Core для совершенствования `async_wrap` и `async_hooks`.
* Поддержание и улучшение интеграции системы трассировки ОС (например, ETW, LTTNG, dtrace).
* Документирование диагностических возможностей и API в Node.js и его компонентах.
* Изучение возможностей и пробелов, обсуждение запросов функций и решение конфликтов в диагностике Node.js.
Expand Down
2 changes: 1 addition & 1 deletion locale/ru/docs/guides/getting-started-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ server.listen(port, hostname, () => {
});
```

Далее запустите ваш веб-сервер, используя команду ``` node app.js ```, откройте http://localhost:3000 в браузере и вы увидите сообщение 'Hello World'.
Далее запустите ваш веб-сервер, используя команду `node app.js`, откройте http://localhost:3000 в браузере и вы увидите сообщение 'Hello World'.
2 changes: 1 addition & 1 deletion locale/ru/docs/meta/topics/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ layout: docs.hbs

### OpenSSL

OpenSSL широко используется в модулях `tls` и` crypto`. Он предоставляет проверенные на практике реализации
OpenSSL широко используется в модулях `tls` и `crypto`. Он предоставляет проверенные на практике реализации
многих криптографических функций, которые современные сети используют для обеспечения безопасности.

- [Документация](https://www.openssl.org/docs/)
Expand Down
2 changes: 1 addition & 1 deletion locale/ru/knowledge/HTTP/servers/how-to-read-POST-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ With the HTML out of the way, we [create a server](/how-do-i-create-a-http-serve

Something important to note is that the event listeners are being added immediately after the request object is received. If you don't immediately set them, then there is a possibility of missing some of the events. If, for example, an event listener was attached from inside a callback, then the `data` and `end` events might be fired in the meantime with no listeners attached!

You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occassionally you will see lines with no data, e.g. `POSTed: `. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently.
You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occassionally you will see lines with no data, e.g. `POSTed:`. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ layout: knowledge-post.hbs

`encoding` это необязательный параметр, который указывает тип кодировки, для чтения файла. Возможные кодировки: 'ascii', 'utf8' и 'base64'. Если кодировка не указана, по умолчанию используется значение `null`.

`callback` ― это функция, которая вызывается, когда файл был прочитан и содержимое готово ― ей передается два аргумента, `error` и `data`. Если ошибки нет, `error` будет иметь значение` null`, а `data` будет содержать содержимое файла; иначе `err` содержит сообщение об ошибке.
`callback` ― это функция, которая вызывается, когда файл был прочитан и содержимое готово ― ей передается два аргумента, `error` и `data`. Если ошибки нет, `error` будет иметь значение `null`, а `data` будет содержать содержимое файла; иначе `err` содержит сообщение об ошибке.

Поэтому, если мы хотим прочитать `/etc/hosts` и вывести его в stdout (точно так же, как `cat` в UNIX):

Expand Down
2 changes: 1 addition & 1 deletion locale/uk/knowledge/HTTP/servers/how-to-read-POST-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ With the HTML out of the way, we [create a server](/how-do-i-create-a-http-serve

Something important to note is that the event listeners are being added immediately after the request object is received. If you don't immediately set them, then there is a possibility of missing some of the events. If, for example, an event listener was attached from inside a callback, then the `data` and `end` events might be fired in the meantime with no listeners attached!

You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occassionally you will see lines with no data, e.g. `POSTed: `. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently.
You can save this script to `server.js` and run it with `node server.js`. Once you run it you will notice that occassionally you will see lines with no data, e.g. `POSTed:`. This happens because regular `GET` requests go through the same codepath. In a more 'real-world' application, it would be proper practice to check the type of request and handle the different request types differently.

2 changes: 1 addition & 1 deletion locale/zh-cn/docs/guides/getting-started-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ server.listen(port, hostname, () => {
});
```

然后使用 ``` node app.js ``` 运行程序,访问 <http://localhost:3000>,你就会看到一个消息,写着“Hello World”。
然后使用 `node app.js` 运行程序,访问 <http://localhost:3000>,你就会看到一个消息,写着“Hello World”。