File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ Emulates Node's [zlib](http://nodejs.org/api/zlib.html) module for [Browserify](
4
4
using [ pako] ( https://github.com/nodeca/pako ) . It uses the actual Node source code and passes the Node zlib tests
5
5
by emulating the C++ binding that actually calls zlib.
6
6
7
+ ## Not implemented
8
+
9
+ The following options/methods are not supported because pako does not support them yet.
10
+
11
+ * The ` params ` method
12
+ * The ` dictionary ` option
13
+
7
14
## License
8
15
9
16
MIT
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ exports.DEFLATERAW = 5;
18
18
exports . INFLATERAW = 6 ;
19
19
exports . UNZIP = 7 ;
20
20
21
+ /**
22
+ * Emulate Node's zlib C++ layer for use by the JS layer in index.js
23
+ */
21
24
function Zlib ( mode ) {
22
25
if ( mode < exports . DEFLATE || mode > exports . UNZIP )
23
26
throw new TypeError ( "Bad argument" ) ;
You can’t perform that action at this time.
0 commit comments