@thi.ng/file-io 0.3.21 → 0.3.23
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.md +1 -1
- package/README.md +7 -10
- package/hash.d.ts +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/file-io)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -19,7 +19,7 @@ This project is part of the
|
|
|
19
19
|
|
|
20
20
|
## About
|
|
21
21
|
|
|
22
|
-
Assorted file I/O utils (with logging support) for NodeJS
|
|
22
|
+
Assorted file I/O utils (with logging support) for NodeJS
|
|
23
23
|
|
|
24
24
|
Most functions in this package have optional support for the
|
|
25
25
|
[`ILogger`](https://github.com/thi-ng/umbrella/tree/develop/packages/logger)
|
|
@@ -39,11 +39,8 @@ yarn add @thi.ng/file-io
|
|
|
39
39
|
|
|
40
40
|
For Node.js REPL:
|
|
41
41
|
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
node --experimental-repl-await
|
|
45
|
-
|
|
46
|
-
> const fileIo = await import("@thi.ng/file-io");
|
|
42
|
+
```js
|
|
43
|
+
const fileIo = await import("@thi.ng/file-io");
|
|
47
44
|
```
|
|
48
45
|
|
|
49
46
|
Package sizes (brotli'd, pre-treeshake): ESM: 997 bytes
|
|
@@ -63,7 +60,7 @@ TODO
|
|
|
63
60
|
|
|
64
61
|
## Authors
|
|
65
62
|
|
|
66
|
-
Karsten Schmidt
|
|
63
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
67
64
|
|
|
68
65
|
If this project contributes to an academic publication, please cite it as:
|
|
69
66
|
|
|
@@ -78,4 +75,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
78
75
|
|
|
79
76
|
## License
|
|
80
77
|
|
|
81
|
-
© 2022 Karsten Schmidt // Apache
|
|
78
|
+
© 2022 Karsten Schmidt // Apache License 2.0
|
package/hash.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ILogger } from "@thi.ng/logger";
|
|
2
|
-
export
|
|
2
|
+
export type HashAlgo = "gost-mac" | "md4" | "md5" | "md_gost94" | "ripemd160" | "sha1" | "sha224" | "sha256" | "sha384" | "sha512" | "streebog256" | "streebog512" | "whirlpool";
|
|
3
3
|
export declare const fileHash: (path: string, logger?: ILogger, algo?: HashAlgo) => string;
|
|
4
4
|
export declare const stringHash: (src: string, logger?: ILogger, algo?: HashAlgo) => string;
|
|
5
5
|
//# sourceMappingURL=hash.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/file-io",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.23",
|
|
4
4
|
"description": "Assorted file I/O utils (with logging support) for NodeJS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
12
|
},
|
|
13
|
-
"homepage": "https://github.com/thi-ng/umbrella/tree/
|
|
13
|
+
"homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/file-io#readme",
|
|
14
14
|
"funding": [
|
|
15
15
|
{
|
|
16
16
|
"type": "github",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/checks": "^3.3.
|
|
39
|
-
"@thi.ng/logger": "^1.4.
|
|
40
|
-
"@thi.ng/random": "^3.3.
|
|
37
|
+
"@thi.ng/api": "^8.6.1",
|
|
38
|
+
"@thi.ng/checks": "^3.3.5",
|
|
39
|
+
"@thi.ng/logger": "^1.4.5",
|
|
40
|
+
"@thi.ng/random": "^3.3.19"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@microsoft/api-extractor": "^7.33.
|
|
44
|
-
"@thi.ng/testament": "^0.3.
|
|
43
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
44
|
+
"@thi.ng/testament": "^0.3.7",
|
|
45
45
|
"rimraf": "^3.0.2",
|
|
46
46
|
"tools": "^0.0.1",
|
|
47
|
-
"typedoc": "^0.23.
|
|
48
|
-
"typescript": "^4.
|
|
47
|
+
"typedoc": "^0.23.22",
|
|
48
|
+
"typescript": "^4.9.4"
|
|
49
49
|
},
|
|
50
50
|
"keywords": [
|
|
51
51
|
"file",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"status": "stable",
|
|
109
109
|
"year": 2022
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
|
|
112
112
|
}
|