summaryrefslogtreecommitdiff
path: root/doc/api/zlib.md
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-21 07:53:00 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-04-25 00:05:33 +0300
commitb6d293d2158c66a3edbb86c0c43b4c51af3484f7 (patch)
tree9f924abbe8a8efe10a34ab7448d22a4e1c632746 /doc/api/zlib.md
parent26047c39c89ff40bfbab5e02e8186dab2d2832af (diff)
downloadandroid-node-v8-b6d293d2158c66a3edbb86c0c43b4c51af3484f7.tar.gz
android-node-v8-b6d293d2158c66a3edbb86c0c43b4c51af3484f7.tar.bz2
android-node-v8-b6d293d2158c66a3edbb86c0c43b4c51af3484f7.zip
doc: prepare js code for eslint-plugin-markdown
This is an initial step to eliminate most of parsing errors. PR-URL: https://github.com/nodejs/node/pull/12563 Refs: https://github.com/nodejs/node/pull/12557#issuecomment-296015032 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Diffstat (limited to 'doc/api/zlib.md')
-rw-r--r--doc/api/zlib.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/api/zlib.md b/doc/api/zlib.md
index a91456bb0b..804324521a 100644
--- a/doc/api/zlib.md
+++ b/doc/api/zlib.md
@@ -84,7 +84,9 @@ request.on('response', (response) => {
break;
}
});
+```
+```js
// server example
// Running a gzip operation on every request is quite expensive.
// It would be much more efficient to cache the compressed buffer.
@@ -159,7 +161,7 @@ For example, to reduce the default memory requirements from 256K to 128K, the
options should be set to:
```js
-{ windowBits: 14, memLevel: 7 }
+const options = { windowBits: 14, memLevel: 7 };
```
This will, however, generally degrade compression.