0.5.2 • Published 9 months ago
@zenfs/zip v0.5.2
ZenFS Zip Backend
ZenFS backend for Zip files.
Please read the ZenFS documentation!
Backend
This package adds the Zip
backend, which allows you to create a readonly file system from a zip file.
For more information, see the API documentation.
Usage
!NOTE The examples are written in ESM.
For CJS, you canrequire
the package.
If using a browser environment, you can use a<script>
withtype=module
(you may need to use import maps)
You can't use Zip
on its own. You must import the core in order to use the backend.
import { configure, fs } from '@zenfs/core';
import { Zip } from '@zenfs/zip';
const res = await fetch('http://example.com/archive.zip');
await configure({
mounts: {
'/mnt/zip': { backend: Zip, data: await res.arrayBuffer() },
},
});
const contents = fs.readFileSync('/mnt/zip/in-archive.txt', 'utf-8');
console.log(contents);
0.5.2
9 months ago
0.4.9
10 months ago
0.5.0
10 months ago
0.5.1
9 months ago
0.4.8
10 months ago
0.4.7
11 months ago
0.4.6
12 months ago
0.4.5
1 year ago
0.4.4
1 year ago
0.4.1
1 year ago
0.4.0
1 year ago
0.4.3
1 year ago
0.4.2
1 year ago
0.3.1
1 year ago
0.3.0
1 year ago
0.2.0
1 year ago
0.1.5
1 year ago
0.1.4
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago