redzip 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2026.02.13, v4.0.1
2
+
3
+ feature:
4
+ - 8747d2e redzip: readzip v3.0.0
5
+
1
6
  2026.01.31, v4.0.0
2
7
 
3
8
  feature:
package/README.md CHANGED
@@ -32,15 +32,14 @@ npm i redzip
32
32
  #### Example
33
33
 
34
34
  ```js
35
+ import * as redzip from 'redzip';
36
+
35
37
  const sort = 'size';
36
38
  const order = 'desc';
37
39
  const type = 'raw';
38
-
39
40
  const dirPath = '/home/coderaiser/hello.zip/hello/';
40
41
  const path = '/home/coderaiser/hello.zip/hello.txt';
41
42
 
42
- import * as redzip from 'redzip';
43
-
44
43
  const dirStream = await redzip.read(dirPath, {
45
44
  type,
46
45
  sort,
@@ -56,7 +56,10 @@ export const readSize = async (outerPath, innerPath, options) => {
56
56
  };
57
57
 
58
58
  export const remove = async (outerPath, overrides = {}) => {
59
- const {rmdir = _rmdir, unlink = _unlink} = overrides;
59
+ const {
60
+ rmdir = _rmdir,
61
+ unlink = _unlink,
62
+ } = overrides;
60
63
  const [error] = await tryToCatch(rmdir, outerPath);
61
64
 
62
65
  if (!error)
@@ -1,5 +1,5 @@
1
1
  import {join} from 'node:path';
2
- import readzip from 'readzip';
2
+ import {readzip} from 'readzip';
3
3
 
4
4
  const addSlash = (a) => a.at(-1) === '/' ? a : `${a}/`;
5
5
 
@@ -1,7 +1,7 @@
1
1
  import {posix} from 'node:path';
2
2
  import sortify from '@cloudcmd/sortify';
3
3
  import formatify from '@cloudcmd/formatify';
4
- import readzip from 'readzip';
4
+ import {readzip} from 'readzip';
5
5
 
6
6
  const {sep} = posix;
7
7
 
@@ -1,5 +1,5 @@
1
1
  import format from 'format-io';
2
- import readzip from 'readzip';
2
+ import {readzip} from 'readzip';
3
3
 
4
4
  export default async (outerPath, innerPath, options = {}) => {
5
5
  const {type} = options;
@@ -1,4 +1,4 @@
1
- import readzip from 'readzip';
1
+ import {readzip} from 'readzip';
2
2
 
3
3
  const {assign} = Object;
4
4
 
@@ -10,7 +10,7 @@ import {
10
10
  import yazl from 'yazl';
11
11
  import pipe from 'pipe-io';
12
12
  import {tryToCatch} from 'try-to-catch';
13
- import readzip from 'readzip';
13
+ import {readzip} from 'readzip';
14
14
 
15
15
  const {join, dirname} = posix;
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redzip",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "type": "module",
5
5
  "main": "lib/redzip.js",
6
6
  "description": "work with files inside archives like with regular files",
@@ -30,7 +30,7 @@
30
30
  "once": "^1.4.0",
31
31
  "pipe-io": "^4.0.1",
32
32
  "readify": "^10.0.0",
33
- "readzip": "^2.0.0",
33
+ "readzip": "^3.0.0",
34
34
  "totalist": "^3.0.1",
35
35
  "trammel": "^6.0.0",
36
36
  "try-to-catch": "^4.0.4",