@reliverse/relifso 1.2.3 → 1.2.4
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/bin/mod.d.ts +20 -2
- package/bin/mod.js +32 -3
- package/package.json +1 -1
package/bin/mod.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Stats } from "node:fs";
|
|
2
|
-
import {
|
|
2
|
+
import { accessSync, constants, readdirSync, statSync } from "node:fs";
|
|
3
|
+
import { readdir as nodeReaddirInternal, stat as nodeStatInternal, readdir, stat, access } from "node:fs/promises";
|
|
3
4
|
import type { DiveOptions } from "./impl/dive.js";
|
|
4
5
|
import { copy, copySync } from "./impl/copy.js";
|
|
5
6
|
import { createFile, createFileSync } from "./impl/create-file.js";
|
|
@@ -27,13 +28,19 @@ declare const ensureDirSync: typeof mkdirsSync;
|
|
|
27
28
|
declare const ensureFileSync: typeof createFileSync;
|
|
28
29
|
declare const rimrafSync: typeof removeSync;
|
|
29
30
|
declare const ncpSync: typeof copySync;
|
|
31
|
+
declare const mkdir: typeof mkdirs;
|
|
32
|
+
declare const mkdirSync: typeof mkdirsSync;
|
|
33
|
+
declare const unlink: typeof remove;
|
|
34
|
+
declare const unlinkSync: typeof removeSync;
|
|
35
|
+
declare const rename: typeof move;
|
|
36
|
+
declare const renameSync: typeof moveSync;
|
|
30
37
|
export type { CopyOptions } from "./impl/copy.js";
|
|
31
38
|
export type { MoveOptions } from "./impl/move.js";
|
|
32
39
|
export type { ReadFileOptions } from "./impl/read-file.js";
|
|
33
40
|
export type { ReadJsonOptions } from "./impl/read-json.js";
|
|
34
41
|
export type { JsonStringifyOptions } from "./impl/write-json.js";
|
|
35
42
|
export type { WriteJsonOptions } from "./impl/write-json.js";
|
|
36
|
-
export { readJson, writeJson, createFile, writeFile, readFile, mkdirs, emptyDir, pathExists, copy, move, remove, readdir, stat, readJsonSync, writeJsonSync, createFileSync, writeFileSync, readFileSync, mkdirsSync, emptyDirSync, pathExistsSync, copySync, moveSync, removeSync, mkdirp, mkdirpSync, rimraf, rimrafSync, ncp, ncpSync, ensureDir, ensureDirSync, ensureFile, ensureFileSync, outputJson, outputJsonSync, outputFile, outputFileSync, diveSync, };
|
|
43
|
+
export { readJson, writeJson, createFile, writeFile, readFile, mkdirs, emptyDir, pathExists, copy, move, remove, readdir, stat, access, readJsonSync, writeJsonSync, createFileSync, writeFileSync, readFileSync, mkdirsSync, emptyDirSync, pathExistsSync, copySync, moveSync, removeSync, readdirSync, statSync, accessSync, constants, mkdirp, mkdirpSync, rimraf, rimrafSync, ncp, ncpSync, ensureDir, ensureDirSync, ensureFile, ensureFileSync, outputJson, outputJsonSync, outputFile, outputFileSync, diveSync, mkdir, mkdirSync, unlink, unlinkSync, rename, renameSync, };
|
|
37
44
|
declare const fs: {
|
|
38
45
|
readJson: typeof readJson;
|
|
39
46
|
writeJson: typeof writeJson;
|
|
@@ -48,6 +55,7 @@ declare const fs: {
|
|
|
48
55
|
remove: typeof remove;
|
|
49
56
|
readdir: typeof nodeReaddirInternal;
|
|
50
57
|
stat: typeof nodeStatInternal;
|
|
58
|
+
access: typeof access;
|
|
51
59
|
readJsonSync: typeof readJsonSync;
|
|
52
60
|
writeJsonSync: typeof writeJsonSync;
|
|
53
61
|
createFileSync: typeof createFileSync;
|
|
@@ -59,6 +67,10 @@ declare const fs: {
|
|
|
59
67
|
copySync: typeof copySync;
|
|
60
68
|
moveSync: typeof moveSync;
|
|
61
69
|
removeSync: typeof removeSync;
|
|
70
|
+
readdirSync: typeof readdirSync;
|
|
71
|
+
statSync: import("fs").StatSyncFn;
|
|
72
|
+
accessSync: typeof accessSync;
|
|
73
|
+
constants: typeof constants;
|
|
62
74
|
mkdirp: typeof mkdirs;
|
|
63
75
|
mkdirpSync: typeof mkdirsSync;
|
|
64
76
|
rimraf: typeof remove;
|
|
@@ -75,5 +87,11 @@ declare const fs: {
|
|
|
75
87
|
outputFileSync: typeof outputFileSync;
|
|
76
88
|
dive: typeof dive;
|
|
77
89
|
diveSync: typeof diveSync;
|
|
90
|
+
mkdir: typeof mkdirs;
|
|
91
|
+
mkdirSync: typeof mkdirsSync;
|
|
92
|
+
unlink: typeof remove;
|
|
93
|
+
unlinkSync: typeof removeSync;
|
|
94
|
+
rename: typeof move;
|
|
95
|
+
renameSync: typeof moveSync;
|
|
78
96
|
};
|
|
79
97
|
export default fs;
|
package/bin/mod.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { accessSync, constants, readdirSync, statSync } from "node:fs";
|
|
2
|
+
import { readdir as nodeReaddirInternal, stat as nodeStatInternal, readdir, stat, access } from "node:fs/promises";
|
|
2
3
|
import { join as pathJoin } from "node:path";
|
|
3
4
|
import { copy, copySync } from "./impl/copy.js";
|
|
4
5
|
import { createFile, createFileSync } from "./impl/create-file.js";
|
|
@@ -101,6 +102,12 @@ const ensureDirSync = mkdirsSync;
|
|
|
101
102
|
const ensureFileSync = createFileSync;
|
|
102
103
|
const rimrafSync = removeSync;
|
|
103
104
|
const ncpSync = copySync;
|
|
105
|
+
const mkdir = mkdirs;
|
|
106
|
+
const mkdirSync = mkdirsSync;
|
|
107
|
+
const unlink = remove;
|
|
108
|
+
const unlinkSync = removeSync;
|
|
109
|
+
const rename = move;
|
|
110
|
+
const renameSync = moveSync;
|
|
104
111
|
export {
|
|
105
112
|
readJson,
|
|
106
113
|
writeJson,
|
|
@@ -115,6 +122,7 @@ export {
|
|
|
115
122
|
remove,
|
|
116
123
|
readdir,
|
|
117
124
|
stat,
|
|
125
|
+
access,
|
|
118
126
|
readJsonSync,
|
|
119
127
|
writeJsonSync,
|
|
120
128
|
createFileSync,
|
|
@@ -126,6 +134,10 @@ export {
|
|
|
126
134
|
copySync,
|
|
127
135
|
moveSync,
|
|
128
136
|
removeSync,
|
|
137
|
+
readdirSync,
|
|
138
|
+
statSync,
|
|
139
|
+
accessSync,
|
|
140
|
+
constants,
|
|
129
141
|
mkdirp,
|
|
130
142
|
mkdirpSync,
|
|
131
143
|
rimraf,
|
|
@@ -140,7 +152,13 @@ export {
|
|
|
140
152
|
outputJsonSync,
|
|
141
153
|
outputFile,
|
|
142
154
|
outputFileSync,
|
|
143
|
-
diveSync
|
|
155
|
+
diveSync,
|
|
156
|
+
mkdir,
|
|
157
|
+
mkdirSync,
|
|
158
|
+
unlink,
|
|
159
|
+
unlinkSync,
|
|
160
|
+
rename,
|
|
161
|
+
renameSync
|
|
144
162
|
};
|
|
145
163
|
const fs = {
|
|
146
164
|
// async methods
|
|
@@ -157,6 +175,7 @@ const fs = {
|
|
|
157
175
|
remove,
|
|
158
176
|
readdir,
|
|
159
177
|
stat,
|
|
178
|
+
access,
|
|
160
179
|
// sync methods
|
|
161
180
|
readJsonSync,
|
|
162
181
|
writeJsonSync,
|
|
@@ -169,6 +188,10 @@ const fs = {
|
|
|
169
188
|
copySync,
|
|
170
189
|
moveSync,
|
|
171
190
|
removeSync,
|
|
191
|
+
readdirSync,
|
|
192
|
+
statSync,
|
|
193
|
+
accessSync,
|
|
194
|
+
constants,
|
|
172
195
|
// alias
|
|
173
196
|
mkdirp,
|
|
174
197
|
mkdirpSync,
|
|
@@ -185,6 +208,12 @@ const fs = {
|
|
|
185
208
|
outputFile,
|
|
186
209
|
outputFileSync,
|
|
187
210
|
dive,
|
|
188
|
-
diveSync
|
|
211
|
+
diveSync,
|
|
212
|
+
mkdir,
|
|
213
|
+
mkdirSync,
|
|
214
|
+
unlink,
|
|
215
|
+
unlinkSync,
|
|
216
|
+
rename,
|
|
217
|
+
renameSync
|
|
189
218
|
};
|
|
190
219
|
export default fs;
|