@@ -2540,14 +2540,14 @@ file. Can be combined with [`registerMime`] to register the result.
25402540
25412541[`readZip`]: #readzippath
25422542
2543- - `path` [`<string>`] path to the zip file to read.
2543+ - `path` [`<string>`] path to the zip archive to read.
25442544- Returns: [`<Promise>`] Fulfills with [`<ZipDirectory>`].
25452545
2546- Reads the structure of a `. zip` file and returns the root directory. This can be used to navigate to
2546+ Reads the structure of a zip archive and returns the root directory. This can be used to navigate to
25472547and open any file in the zip.
25482548
25492549Compressed files in the zip are represented by "virtual" sibling files with `.deflate` suffixes. For
2550- example, a zip containing:
2550+ example, a zip archive containing:
25512551
25522552- `foo/file1.txt` (compressed)
25532553- `foo/file2.txt` (stored)
@@ -3874,7 +3874,8 @@ connection can be reused _without_ needing to consume the body if `willSendBody`
38743874[` zipFileFinder` ]: #zipfilefinderzipdirectory-options
38753875
38763876- ` zipDirectory` [` < ZipDirectory> ` ] the base directory to serve files from. Only content within this
3877- directory (or sub-directories) in the zip be served. See [` readZip` ] and [` ZipDirectory .find ` ].
3877+ directory (or sub-directories) in the zip archive will be served. See [` readZip` ] and
3878+ [` ZipDirectory .find ` ].
38783879- ` options` [` < Object > ` ] A set of options controlling how files are matched, and which files are
38793880 visible
38803881 - ` subDirectories` [` < boolean> ` ] | [` < number> ` ] ` true ` to allow access to all sub-directories,
@@ -3913,7 +3914,7 @@ Example usage: [Serving zip assets]
39133914
39143915- Extends: [` < ZipNode> ` ]
39153916
3916- A representation of a directory in a zip file .
3917+ A representation of a directory in a zip archive .
39173918
39183919#### ` zipdirectory .allFiles ()`
39193920
@@ -3944,7 +3945,7 @@ Returns the child node at the requested path, or returns `undefined` if the path
39443945
39453946- Extends: [` < ZipNode> ` ]
39463947
3947- A representation of a file in a zip file .
3948+ A representation of a file in a zip archive .
39483949
39493950#### ` zipfile .virtual `
39503951
@@ -3995,7 +3996,7 @@ Ensure the `FileHandle` is always `close`d when no-longer required.
39953996
39963997[` < ZipNode> ` ]: #zipnode
39973998
3998- A representation of a file ([` < ZipFile> ` ]) or directory ([` < ZipDirectory> ` ]) in a zip file .
3999+ A representation of a file ([` < ZipFile> ` ]) or directory ([` < ZipDirectory> ` ]) in a zip archive .
39994000
40004001#### ` zipnode .isDirectory `
40014002
@@ -4309,7 +4310,7 @@ Reference: [`staticJSON`], [`<Router>`]
43094310
43104311[Serving zip assets]: #serving- zip- assets
43114312
4312- Example of serving static content directly from a ` . zip` file :
4313+ Example of serving static content directly from a zip archive :
43134314
43144315` ` ` js
43154316import {
@@ -4335,7 +4336,7 @@ router.use(
43354336Reference: [` assetServer` ], [` negotiateEncoding` ], [` Negotiator` ], [` readZip` ], [` <Router>` ],
43364337[` zipFileFinder` ]
43374338
4338- The recommended way to generate a zip file for this purpose on MacOS and Unix is:
4339+ The recommended way to generate a zip archive for this purpose on MacOS and Unix is:
43394340
43404341` ` ` sh
43414342zip -9 -X -r -n .gz:.png:.jpg:.jpeg content.zip index.html style.css [...]
0 commit comments