|
1 | 1 | --- |
2 | | -layout: page |
3 | | -title: Проміжні обробники Express |
| 2 | +layout: middleware |
| 3 | +title: Проміжні Express-модулі |
| 4 | +description: Ознайомтесь із списком проміжних модулів Express.js, які підтримуються командою Express та спільнотою, й включають вбудовані модулі та популярні сторонні пакети. |
4 | 5 | menu: resources |
5 | 6 | lang: uk |
6 | | -description: Explore a list of Express.js middleware modules maintained by the Express |
7 | | - team and the community, including built-in middleware and popular third-party modules. |
| 7 | +redirect_from: "/resources/middleware.html" |
| 8 | +module: mw-home |
8 | 9 | --- |
9 | 10 |
|
10 | | -# Проміжні обробники третій сторін |
| 11 | +## Проміжні Express-модулі |
11 | 12 |
|
12 | | -Here are some Express middleware modules: |
| 13 | +Проміжні Express-модулі, перелічені тут, підтримуюються [командою Expressjs](https://github.com/orgs/expressjs/people). |
13 | 14 |
|
14 | | - - [body-parser](https://github.com/expressjs/body-parser): previously `express.bodyParser`, `json`, and `urlencoded`. |
15 | | - See also: |
16 | | - - [body](https://github.com/raynos/body) |
17 | | - - [co-body](https://github.com/visionmedia/co-body) |
18 | | - - [raw-body](https://github.com/stream-utils/raw-body) |
19 | | - - [compression](https://github.com/expressjs/compression): previously `express.compress` |
20 | | - - [connect-image-optimus](https://github.com/msemenistyi/connect-image-optimus): Connect/Express middleware modules for optimal image serving. Switches images to `.webp` or `.jxr`, if possible. |
21 | | - - [connect-timeout](https://github.com/expressjs/timeout): previously `express.timeout` |
22 | | - - [cookie-parser](https://github.com/expressjs/cookie-parser): previously `express.cookieParser` |
23 | | - - [cookie-session](https://github.com/expressjs/cookie-session): previously `express.cookieSession` |
24 | | - - [errorhandler](https://github.com/expressjs/errorhandler): previously `express.errorHandler` |
25 | | - - [express-debug](https://github.com/devoidfury/express-debug): unobtrusive development tool that adds a tab with information about template variables (locals), current session, useful request data, and more to your application. |
26 | | - - [express-partial-response](https://github.com/nemtsov/express-partial-response): Express middleware module for filtering-out parts of JSON responses based on the `fields` query-string; by using Google API's Partial Response. |
27 | | - - [express-session](https://github.com/expressjs/session): previously `express.session` |
28 | | - - [express-simple-cdn](https://github.com/jamiesteven/express-simple-cdn): Express middleware module for using a CDN for static assets, with multiple host support (For example: cdn1.host.com, cdn2.host.com). |
29 | | - - [express-slash](https://github.com/ericf/express-slash): Express middleware module for people who are strict about trailing slashes. |
30 | | - - [express-stormpath](https://github.com/stormpath/stormpath-express): Express middleware module for user storage, authentication, authorization, SSO, and data security. |
31 | | - - [express-uncapitalize](https://github.com/jamiesteven/express-uncapitalize): middleware module for redirecting HTTP requests containing uppercase to a canonical lowercase form. |
32 | | - - [helmet](https://github.com/helmetjs/helmet): module to help secure your apps by setting various HTTP headers. |
33 | | - - [join-io](https://github.com/coderaiser/join-io "join-io"): module for joining files on the fly to reduce the requests count. |
34 | | - - [method-override](https://github.com/expressjs/method-override): previously `express.methodOverride` |
35 | | - - [morgan](https://github.com/expressjs/morgan): previously `logger` |
36 | | - - [passport](https://github.com/jaredhanson/passport): Express middleware module for authentication. |
37 | | - - [response-time](https://github.com/expressjs/response-time): previously `express.responseTime` |
38 | | - - [serve-favicon](https://github.com/expressjs/serve-favicon): previously `express.favicon` |
39 | | - - [serve-index](https://github.com/expressjs/serve-index): previously `express.directory` |
40 | | - - [serve-static](https://github.com/expressjs/serve-static): module for serving static content. |
41 | | - - [static-expiry](https://github.com/paulwalker/connect-static-expiry): fingerprinted URLs or Caching Headers for static assets including support for one or more external domains. |
42 | | - - [vhost](https://github.com/expressjs/vhost): previously `express.vhost` |
43 | | - - [view-helpers](https://github.com/madhums/node-view-helpers): Express middleware module that provides common helper methods to the views. |
44 | | - - [sriracha-admin](https://github.com/hdngr/siracha): Express middleware module that dynamically generates an admin site for Mongoose. |
| 15 | +| Проміжний модуль | Опис | Заміняє таку вбудовану функцію (Express 3) | |
| 16 | +|---------------------------|---------------------|----------------------| |
| 17 | +| [body-parser](/resources/middleware/body-parser.html) | Аналізує та перетворює в об'єкт тіло HTTP запиту. Також перегляньте: [body](https://github.com/raynos/body), [co-body](https://github.com/visionmedia/co-body), і [raw-body](https://github.com/stream-utils/raw-body). | express.bodyParser | |
| 18 | +| [compression](/resources/middleware/compression.html) | Стискає HTTP відповіді. | express.compress | |
| 19 | +| [connect-rid](/resources/middleware/connect-rid.html) | Генерує унікальний ідентифікатор запиту. | NA | |
| 20 | +| [cookie-parser](/resources/middleware/cookie-parser.html) | Аналізує cookie-заголовок та поміщає його вміст у `req.cookies`. Також перегляньте [cookies](https://github.com/jed/cookies) і [keygrip](https://github.com/jed/keygrip). | express.cookieParser| |
| 21 | +| [cookie-session](/resources/middleware/cookie-session.html) | Додає створення сесій на основі cookies.| express.cookieSession | |
| 22 | +| [cors](/resources/middleware/cors.html) | Додає підтримку спільного доступу до ресурсів між різними джерелами (CORS) з можливістю конфігурації. | NA |
| 23 | +| [errorhandler](/resources/middleware/errorhandler.html) | Додає обробку помилок та полегшує виправку багів під час розробки. | express.errorHandler | |
| 24 | +| [method-override](/resources/middleware/method-override.html) | Замінює HTTP метод через заголовки. | express.methodOverride | |
| 25 | +| [morgan](/resources/middleware/morgan.html) | Фіксує HTTP запити в логах. | express.logger | |
| 26 | +| [multer](/resources/middleware/multer.html) | Обробляє запити з даними, які містять файли. | express.bodyParser | |
| 27 | +| [response-time](/resources/middleware/response-time.html) | Фіксує тривалість обробки HTTP запиту. |express.responseTime | |
| 28 | +| [serve-favicon](/resources/middleware/serve-favicon.html) | Додає іконку сайту. | express.favicon | |
| 29 | +| [serve-index](/resources/middleware/serve-index.html) | Відображає список файлів у вказаній шляхом директорії. | express.directory | |
| 30 | +| [serve-static](/resources/middleware/serve-static.html) | Додає підтримку передачі статичних файлів. | express.static | |
| 31 | +| [session](/resources/middleware/session.html) | Додає серверні сесії (лише для розробки). | express.session | |
| 32 | +| [timeout](/resources/middleware/timeout.html) | Встановлює обмеження часу обробки HTTP-запиту. | express.timeout | |
| 33 | +| [vhost](/resources/middleware/vhost.html) | Створює віртуальні домени. | express.vhost | |
45 | 34 |
|
46 | | -Some middleware modules previously included with Connect are no longer supported by the Connect/Express team. These modules are replaced by an alternative module, or should be superseded by a better module. Use one of the following alternatives: |
| 35 | +## Додаткові проміжні модулі |
47 | 36 |
|
48 | | - - express.cookieParser |
49 | | - - [cookies](https://github.com/jed/cookies) and [keygrip](https://github.com/jed/keygrip) |
50 | | - - express.limit |
51 | | - - [raw-body](https://github.com/stream-utils/raw-body) |
52 | | - - express.multipart |
53 | | - - [connect-busboy](https://github.com/mscdex/connect-busboy) |
54 | | - - [multer](https://github.com/expressjs/multer) |
55 | | - - [connect-multiparty](https://github.com/superjoe30/connect-multiparty) |
56 | | - - express.query |
57 | | - - [qs](https://github.com/visionmedia/node-querystring) |
58 | | - - express.staticCache |
59 | | - - [st](https://github.com/isaacs/st) |
60 | | - - [connect-static](https://github.com/andrewrk/connect-static) |
| 37 | +Кілька інших популярних проміжних модулів. |
61 | 38 |
|
62 | | -For more middleware modules, see: |
| 39 | +{% include community-caveat.html %} |
63 | 40 |
|
64 | | - - [http-framework](https://github.com/Raynos/http-framework/wiki/Modules) |
65 | | - - [expressjs](https://github.com/expressjs) |
| 41 | +| Проміжний модуль | Опис | |
| 42 | +|---------------------------|---------------------| |
| 43 | +| [cls-rtracer](https://github.com/puzpuzpuz/cls-rtracer) | Проміжний модуль для генерації ідентифікаторів запитів на основі CLS. Готове рішення для додавання ідентифікаторів запитів у ваші логи. | |
| 44 | +| [connect-image-optimus](https://github.com/msemenistyi/connect-image-optimus) | Оптимізує передачу зображень. Перетворює зображення в формат `.webp` або `.jxr`, якщо це можливо. | |
| 45 | +| [error-handler-json](https://github.com/mifi/error-handler-json) | Обробник помилок для JSON API (форк з `api-error-handler`.)| |
| 46 | +| [express-debug](https://github.com/devoidfury/express-debug) | Інструмент для розробки, який додає інформацію про шаблонні змінні (locals), поточну сесію та інше. | |
| 47 | +| [express-partial-response](https://github.com/nemtsov/express-partial-response) | Фільтрує частини JSON-відповідей на основі параметра `fields`, використовуючи схожий до Google API підхід часткової відповіді. | |
| 48 | +| [express-simple-cdn](https://github.com/jamiesteven/express-simple-cdn) | Додає CDN для статичних ресурсів із підтримкою кількох хостів. | |
| 49 | +| [express-slash](https://github.com/ericf/express-slash) | Дає змогу обробляє маршрути з і без косої риски в кінці. | |
| 50 | +| [express-uncapitalize](https://github.com/jamiesteven/express-uncapitalize) | Перенаправляє HTTP-запити, що містять великі літери, до канонічного шляху з малими літерами. | |
| 51 | +| [helmet](https://github.com/helmetjs/helmet) | Допомагає забезпечити безпеку ваших додатків шляхом встановлення різних HTTP-заголовків. | |
| 52 | +| [join-io](https://github.com/coderaiser/join-io) | Об'єднує файли на льоту для зменшення кількості запитів. | |
| 53 | +| [passport](https://github.com/jaredhanson/passport) | Дозволяє автентифікацію за допомогою "стратегій", таких як OAuth, OpenID та багатьох інших. Перегляньте [http://passportjs.org/](http://passportjs.org/) для додаткової інформації. | |
| 54 | +| [static-expiry](https://github.com/paulwalker/connect-static-expiry) | Додає унікальні URL-ідентифікатори та заголовки кешування для статичних ресурсів. | |
| 55 | +| [view-helpers](https://github.com/madhums/node-view-helpers) | Поширені допоміжні функції для шаблонізації. | |
| 56 | +| [sriracha-admin](https://github.com/hdngr/siracha) | Динамічно генерує адмін-панель для Mongoose. | |
| 57 | + |
| 58 | +Щоби знайти більше проміжних модулів, перегляньте [http-framework](https://github.com/Raynos/http-framework#modules). |
0 commit comments