aboutsummaryrefslogtreecommitdiff
path: root/node_modules/yazl/README.md
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
commitd1291f67551c58168af43698a359cb5ddfd266b0 (patch)
tree55a13ed29fe1915e3f42f1b1b7038dafa2e975a7 /node_modules/yazl/README.md
parentd0a0695fb5d34996850723f7d4b1b59c3df909c2 (diff)
node_modules
Diffstat (limited to 'node_modules/yazl/README.md')
-rw-r--r--node_modules/yazl/README.md16
1 files changed, 10 insertions, 6 deletions
diff --git a/node_modules/yazl/README.md b/node_modules/yazl/README.md
index 1ff27db78..ef99f4dc7 100644
--- a/node_modules/yazl/README.md
+++ b/node_modules/yazl/README.md
@@ -29,11 +29,11 @@ zipfile.outputStream.pipe(fs.createWriteStream("output.zip")).on("close", functi
// alternate apis for adding files:
zipfile.addReadStream(process.stdin, "stdin.txt", {
mtime: new Date(),
- mode: 0100664, // -rw-rw-r--
+ mode: parseInt("0100664", 8), // -rw-rw-r--
});
zipfile.addBuffer(new Buffer("hello"), "hello.txt", {
mtime: new Date(),
- mode: 0100664, // -rw-rw-r--
+ mode: parseInt("0100664", 8), // -rw-rw-r--
});
// call end() after all the files have been added
zipfile.end();
@@ -100,7 +100,7 @@ See `addFile()` for info about the `metadataPath` parameter.
```js
{
mtime: new Date(),
- mode: 0100664,
+ mode: parseInt("0100664", 8),
compress: true,
forceZip64Format: false,
size: 12345, // example value
@@ -124,7 +124,7 @@ See `addFile()` for info about the `metadataPath` parameter.
```js
{
mtime: new Date(),
- mode: 0100664,
+ mode: parseInt("0100664", 8),
compress: true,
forceZip64Format: false,
}
@@ -270,8 +270,10 @@ Note that the "UNIX" and has implications in the External File Attributes.
### Version Needed to Extract
-Always `45`, meaning 4.5.
-This enables the ZIP64 format.
+Usually `20`, meaning 2.0. This allows filenames to be UTF-8 encoded.
+
+When ZIP64 format is used, some of the Version Needed to Extract values will be `45`, meaning 4.5.
+When this happens, there may be a mix of `20` and `45` values throughout the zipfile.
### General Purpose Bit Flag
@@ -322,6 +324,8 @@ In order to create empty directories, use `addEmptyDirectory()`.
## Change History
+ * 2.4.2
+ * Remove octal literals to make yazl compatible with strict mode. [pull #28](https://github.com/thejoshwolfe/yazl/pull/28)
* 2.4.1
* Fix Mac Archive Utility compatibility issue. [issue #24](https://github.com/thejoshwolfe/yazl/issues/24)
* 2.4.0