@thi.ng/file-io 2.2.11 → 2.2.16

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.
Files changed (2) hide show
  1. package/package.json +137 -137
  2. package/CHANGELOG.md +0 -142
package/package.json CHANGED
@@ -1,138 +1,138 @@
1
1
  {
2
- "name": "@thi.ng/file-io",
3
- "version": "2.2.11",
4
- "description": "Assorted file I/O utils (w/ logging support) for NodeJS/Bun",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
12
- },
13
- "homepage": "https://thi.ng/file-io",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- },
23
- {
24
- "type": "liberapay",
25
- "url": "https://liberapay.com/thi.ng"
26
- }
27
- ],
28
- "author": "Karsten Schmidt (https://thi.ng)",
29
- "license": "Apache-2.0",
30
- "scripts": {
31
- "build": "yarn build:esbuild && yarn build:decl",
32
- "build:decl": "tsc --declaration --emitDeclarationOnly",
33
- "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
- "clean": "bun ../../tools/src/clean-package.ts",
35
- "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
- "pub": "yarn npm publish --access public",
38
- "test": "bun test",
39
- "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
- },
41
- "dependencies": {
42
- "@thi.ng/api": "^8.12.2",
43
- "@thi.ng/checks": "^3.7.18",
44
- "@thi.ng/hex": "^2.3.80",
45
- "@thi.ng/logger": "^3.2.1",
46
- "@thi.ng/random": "^4.1.27"
47
- },
48
- "devDependencies": {
49
- "@types/node": "^24.3.0",
50
- "esbuild": "^0.25.9",
51
- "typedoc": "^0.28.12",
52
- "typescript": "^5.9.2"
53
- },
54
- "keywords": [
55
- "async",
56
- "delete",
57
- "directory",
58
- "file",
59
- "hash",
60
- "iterator",
61
- "json",
62
- "logger",
63
- "no-browser",
64
- "nodejs",
65
- "stream",
66
- "text",
67
- "typescript",
68
- "watch"
69
- ],
70
- "publishConfig": {
71
- "access": "public"
72
- },
73
- "browser": {
74
- "process": false,
75
- "setTimeout": false
76
- },
77
- "engines": {
78
- "node": ">=18"
79
- },
80
- "files": [
81
- "./*.js",
82
- "./*.d.ts",
83
- "internal"
84
- ],
85
- "exports": {
86
- ".": {
87
- "default": "./index.js"
88
- },
89
- "./copy": {
90
- "default": "./copy.js"
91
- },
92
- "./delete": {
93
- "default": "./delete.js"
94
- },
95
- "./dir": {
96
- "default": "./dir.js"
97
- },
98
- "./ext": {
99
- "default": "./ext.js"
100
- },
101
- "./file-chunks": {
102
- "default": "./file-chunks.js"
103
- },
104
- "./files": {
105
- "default": "./files.js"
106
- },
107
- "./hash": {
108
- "default": "./hash.js"
109
- },
110
- "./json": {
111
- "default": "./json.js"
112
- },
113
- "./mask": {
114
- "default": "./mask.js"
115
- },
116
- "./read": {
117
- "default": "./read.js"
118
- },
119
- "./temp": {
120
- "default": "./temp.js"
121
- },
122
- "./text": {
123
- "default": "./text.js"
124
- },
125
- "./watch": {
126
- "default": "./watch.js"
127
- },
128
- "./write": {
129
- "default": "./write.js"
130
- }
131
- },
132
- "thi.ng": {
133
- "alias": "fio",
134
- "status": "stable",
135
- "year": 2022
136
- },
137
- "gitHead": "fbf4b46ba8a5ecff8c5423f4c2d158d208d20fc8\n"
138
- }
2
+ "name": "@thi.ng/file-io",
3
+ "version": "2.2.16",
4
+ "description": "Assorted file I/O utils (w/ logging support) for NodeJS/Bun",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://thi.ng/file-io",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
18
+ },
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ },
23
+ {
24
+ "type": "liberapay",
25
+ "url": "https://liberapay.com/thi.ng"
26
+ }
27
+ ],
28
+ "author": "Karsten Schmidt (https://thi.ng)",
29
+ "license": "Apache-2.0",
30
+ "scripts": {
31
+ "build": "yarn build:esbuild && yarn build:decl",
32
+ "build:decl": "tsc --declaration --emitDeclarationOnly",
33
+ "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
+ "clean": "bun ../../tools/src/clean-package.ts",
35
+ "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
+ "pub": "npm publish --access public",
38
+ "test": "bun test",
39
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
+ },
41
+ "dependencies": {
42
+ "@thi.ng/api": "^8.12.7",
43
+ "@thi.ng/checks": "^3.7.23",
44
+ "@thi.ng/hex": "^2.3.85",
45
+ "@thi.ng/logger": "^3.2.6",
46
+ "@thi.ng/random": "^4.1.32"
47
+ },
48
+ "devDependencies": {
49
+ "@types/node": "^24.9.1",
50
+ "esbuild": "^0.25.11",
51
+ "typedoc": "^0.28.14",
52
+ "typescript": "^5.9.3"
53
+ },
54
+ "keywords": [
55
+ "async",
56
+ "delete",
57
+ "directory",
58
+ "file",
59
+ "hash",
60
+ "iterator",
61
+ "json",
62
+ "logger",
63
+ "no-browser",
64
+ "nodejs",
65
+ "stream",
66
+ "text",
67
+ "typescript",
68
+ "watch"
69
+ ],
70
+ "publishConfig": {
71
+ "access": "public"
72
+ },
73
+ "browser": {
74
+ "process": false,
75
+ "setTimeout": false
76
+ },
77
+ "engines": {
78
+ "node": ">=18"
79
+ },
80
+ "files": [
81
+ "./*.js",
82
+ "./*.d.ts",
83
+ "internal"
84
+ ],
85
+ "exports": {
86
+ ".": {
87
+ "default": "./index.js"
88
+ },
89
+ "./copy": {
90
+ "default": "./copy.js"
91
+ },
92
+ "./delete": {
93
+ "default": "./delete.js"
94
+ },
95
+ "./dir": {
96
+ "default": "./dir.js"
97
+ },
98
+ "./ext": {
99
+ "default": "./ext.js"
100
+ },
101
+ "./file-chunks": {
102
+ "default": "./file-chunks.js"
103
+ },
104
+ "./files": {
105
+ "default": "./files.js"
106
+ },
107
+ "./hash": {
108
+ "default": "./hash.js"
109
+ },
110
+ "./json": {
111
+ "default": "./json.js"
112
+ },
113
+ "./mask": {
114
+ "default": "./mask.js"
115
+ },
116
+ "./read": {
117
+ "default": "./read.js"
118
+ },
119
+ "./temp": {
120
+ "default": "./temp.js"
121
+ },
122
+ "./text": {
123
+ "default": "./text.js"
124
+ },
125
+ "./watch": {
126
+ "default": "./watch.js"
127
+ },
128
+ "./write": {
129
+ "default": "./write.js"
130
+ }
131
+ },
132
+ "thi.ng": {
133
+ "alias": "fio",
134
+ "status": "stable",
135
+ "year": 2022
136
+ },
137
+ "gitHead": "d977f819bcafdcb2b24c45f8d01a167fe29fc85a\n"
138
+ }
package/CHANGELOG.md DELETED
@@ -1,142 +0,0 @@
1
- # Change Log
2
-
3
- - **Last updated**: 2025-09-01T16:38:35Z
4
- - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
-
6
- All notable changes to this project will be documented in this file.
7
- Only versions published since **2022-01-01** are listed here.
8
- Please consult the Git history for older version information.
9
- See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
10
-
11
- **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
- and/or version bumps of transitive dependencies.
13
-
14
- ## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@2.2.0) (2025-07-03)
15
-
16
- #### 🚀 Features
17
-
18
- - add makedPath() and mask registry fns ([74796f8](https://github.com/thi-ng/umbrella/commit/74796f8))
19
- - add copyFile() fns (incl. async version) ([19ad5f3](https://github.com/thi-ng/umbrella/commit/19ad5f3))
20
- - update logging calls to use masked paths only ([c25a2cb](https://github.com/thi-ng/umbrella/commit/c25a2cb))
21
- - add async versions of various file fns ([eff47b7](https://github.com/thi-ng/umbrella/commit/eff47b7))
22
- - add deleteFiles() and async versions ([1185911](https://github.com/thi-ng/umbrella/commit/1185911))
23
-
24
- ### [2.1.21](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@2.1.21) (2025-01-14)
25
-
26
- #### ♻️ Refactoring
27
-
28
- - use optional chaining & nullish coalescing ([c5a0a13](https://github.com/thi-ng/umbrella/commit/c5a0a13))
29
-
30
- ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@2.1.0) (2024-04-23)
31
-
32
- #### 🚀 Features
33
-
34
- - add deleteDir() ([06b4ffc](https://github.com/thi-ng/umbrella/commit/06b4ffc))
35
-
36
- ### [2.0.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@2.0.3) (2024-04-20)
37
-
38
- #### ♻️ Refactoring
39
-
40
- - update type usage ([7dc9551](https://github.com/thi-ng/umbrella/commit/7dc9551))
41
-
42
- # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@2.0.0) (2024-03-29)
43
-
44
- #### 🛑 Breaking changes
45
-
46
- - add `streamHash()`, update other hashing fns ([64a8cad](https://github.com/thi-ng/umbrella/commit/64a8cad))
47
- - BREAKING CHANGE: `fileHash()` now async, rename `stringHash()` => `bufferHash()`
48
-
49
- #### 🚀 Features
50
-
51
- - update args for `createTempFile()` & `tempFilePath()` ([d944789](https://github.com/thi-ng/umbrella/commit/d944789))
52
- - add docstrings
53
-
54
- ### [1.3.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@1.3.3) (2024-02-22)
55
-
56
- #### ♻️ Refactoring
57
-
58
- - update object destructuring in all pkgs & examples ([f36aeb0](https://github.com/thi-ng/umbrella/commit/f36aeb0))
59
-
60
- ### [1.3.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@1.3.2) (2024-02-22)
61
-
62
- #### ♻️ Refactoring
63
-
64
- - update all `node:*` imports ([c71a526](https://github.com/thi-ng/umbrella/commit/c71a526))
65
-
66
- ## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@1.3.0) (2024-02-19)
67
-
68
- #### 🚀 Features
69
-
70
- - add ensureDir() ([8ca3085](https://github.com/thi-ng/umbrella/commit/8ca3085))
71
-
72
- ## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@1.2.0) (2024-01-26)
73
-
74
- #### 🚀 Features
75
-
76
- - add fileWatcher() ([71c1d8f](https://github.com/thi-ng/umbrella/commit/71c1d8f))
77
-
78
- #### ♻️ Refactoring
79
-
80
- - migrate internal predicates ([52c985a](https://github.com/thi-ng/umbrella/commit/52c985a))
81
-
82
- ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@1.1.0) (2023-12-18)
83
-
84
- #### 🚀 Features
85
-
86
- - add generics for readJSON() ([34bdfc8](https://github.com/thi-ng/umbrella/commit/34bdfc8))
87
-
88
- # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@1.0.0) (2023-11-09)
89
-
90
- #### 🛑 Breaking changes
91
-
92
- - update matching logic for files()/dirs() ([8f275b5](https://github.com/thi-ng/umbrella/commit/8f275b5))
93
- - BREAKING CHANGE: files()/dirs() matchers use full relative sub-path
94
- - add support for arbitrary predicate fns as matcher
95
-
96
- #### ♻️ Refactoring
97
-
98
- - update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
99
-
100
- ## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@0.5.0) (2023-02-05)
101
-
102
- #### 🚀 Features
103
-
104
- - add fileChunks() ([bcff691](https://github.com/thi-ng/umbrella/commit/bcff691))
105
-
106
- ## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@0.4.0) (2023-01-10)
107
-
108
- #### 🚀 Features
109
-
110
- - add readText() encoding opts ([22366c0](https://github.com/thi-ng/umbrella/commit/22366c0))
111
- - add readBinary(), update pkg exports ([2c647ed](https://github.com/thi-ng/umbrella/commit/2c647ed))
112
-
113
- ### [0.3.25](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@0.3.25) (2022-12-29)
114
-
115
- #### ♻️ Refactoring
116
-
117
- - update "no-browser" pkg handling ([0e84f1b](https://github.com/thi-ng/umbrella/commit/0e84f1b))
118
-
119
- ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@0.3.0) (2022-05-20)
120
-
121
- #### 🚀 Features
122
-
123
- - add more fns (hashing, masking etc.) ([95b9e2b](https://github.com/thi-ng/umbrella/commit/95b9e2b))
124
- - add fileHash(), stringHash()
125
- - add maskHomeDir()
126
- - add fileExt(), isDirectory()
127
-
128
- #### 🩹 Bug fixes
129
-
130
- - fix ensureDir() for local file paths ([4ae95c2](https://github.com/thi-ng/umbrella/commit/4ae95c2))
131
-
132
- ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@0.2.0) (2022-05-19)
133
-
134
- #### 🚀 Features
135
-
136
- - add dirs() iterator, add writeFile(), dry-run handling ([0279db8](https://github.com/thi-ng/umbrella/commit/0279db8))
137
-
138
- ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/file-io@0.1.0) (2022-05-18)
139
-
140
- #### 🚀 Features
141
-
142
- - import as new pkg ([ca71f31](https://github.com/thi-ng/umbrella/commit/ca71f31))