@thi.ng/file-io 0.3.20 → 0.3.22

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-11-23T22:46:54Z
3
+ - **Last updated**: 2022-12-16T12:52:25Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
 
3
- # ![file-io](https://media.thi.ng/umbrella/banners-20220914/thing-file-io.svg?86fa755f)
3
+ # ![@thi.ng/file-io](https://media.thi.ng/umbrella/banners-20220914/thing-file-io.svg?86fa755f)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/file-io.svg)](https://www.npmjs.com/package/@thi.ng/file-io)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/file-io.svg)
7
- [![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella)
7
+ [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](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,14 +39,11 @@ yarn add @thi.ng/file-io
39
39
 
40
40
  For Node.js REPL:
41
41
 
42
- ```text
43
- # with flag only for < v16
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
- Package sizes (gzipped, pre-treeshake): ESM: 1.10 KB
46
+ Package sizes (brotli'd, pre-treeshake): ESM: 997 bytes
50
47
 
51
48
  ## Dependencies
52
49
 
@@ -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
- &copy; 2022 Karsten Schmidt // Apache Software License 2.0
78
+ &copy; 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 declare type HashAlgo = "gost-mac" | "md4" | "md5" | "md_gost94" | "ripemd160" | "sha1" | "sha224" | "sha256" | "sha384" | "sha512" | "streebog256" | "streebog512" | "whirlpool";
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.20",
3
+ "version": "0.3.22",
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/master/packages/file-io#readme",
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 <k+npm@thi.ng>",
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.5.0",
38
- "@thi.ng/checks": "^3.3.3",
39
- "@thi.ng/logger": "^1.4.3",
40
- "@thi.ng/random": "^3.3.16"
37
+ "@thi.ng/api": "^8.6.0",
38
+ "@thi.ng/checks": "^3.3.5",
39
+ "@thi.ng/logger": "^1.4.5",
40
+ "@thi.ng/random": "^3.3.18"
41
41
  },
42
42
  "devDependencies": {
43
- "@microsoft/api-extractor": "^7.33.5",
44
- "@thi.ng/testament": "^0.3.5",
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.20",
48
- "typescript": "^4.8.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": "75ec32ff7f1b7b5e72e7a04ace24732cd5d6c774\n"
111
+ "gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
112
112
  }