@gjsify/fs 0.3.13 → 0.3.15

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/lib/esm/index.js CHANGED
@@ -1,356 +1,163 @@
1
- import {
2
- existsSync,
3
- readdirSync,
4
- readFileSync,
5
- writeFileSync,
6
- mkdirSync,
7
- rmdirSync,
8
- unlinkSync,
9
- watch,
10
- mkdtempSync,
11
- rmSync,
12
- statSync,
13
- openSync,
14
- realpathSync,
15
- symlinkSync,
16
- lstatSync,
17
- renameSync,
18
- copyFileSync,
19
- accessSync,
20
- appendFileSync,
21
- readlinkSync,
22
- linkSync,
23
- truncateSync,
24
- chmodSync,
25
- chownSync
26
- } from "./sync.js";
27
- import {
28
- open,
29
- close,
30
- read,
31
- write,
32
- rm,
33
- realpath,
34
- readdir,
35
- symlink,
36
- lstat,
37
- stat,
38
- rename,
39
- copyFile,
40
- access,
41
- appendFile,
42
- readlink,
43
- truncate,
44
- chmod,
45
- chown,
46
- mkdir,
47
- rmdir,
48
- readFile,
49
- writeFile,
50
- unlink,
51
- link
52
- } from "./callback.js";
53
- import FSWatcher from "./fs-watcher.js";
54
- import {
55
- createReadStream,
56
- ReadStream
57
- } from "./read-stream.js";
58
- import {
59
- createWriteStream,
60
- WriteStream
61
- } from "./write-stream.js";
62
- import * as promises from "./promises.js";
63
- import { cpSync, cp } from "./cp.js";
1
+ import { FSWatcher } from "./fs-watcher.js";
2
+ import { ReadStream, createReadStream } from "./read-stream.js";
3
+ import { WriteStream, createWriteStream } from "./write-stream.js";
4
+ import { Dirent } from "./dirent.js";
5
+ import { BigIntStats, Stats } from "./stats.js";
6
+ import { accessSync, appendFileSync, chmodSync, chownSync, copyFileSync, existsSync, linkSync, lstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readdirSync, readlinkSync, realpathSync, renameSync, rmSync, rmdirSync, statSync, symlinkSync, truncateSync, unlinkSync, watch, writeFileSync } from "./sync.js";
7
+ import { cp, cpSync } from "./cp.js";
64
8
  import { Dir, opendir, opendirSync } from "./dir.js";
65
9
  import { glob, globSync } from "./glob.js";
66
- import { StatWatcher, watchFile, unwatchFile } from "./stat-watcher.js";
67
- import { statfsSync, statfs } from "./statfs.js";
68
- import { Stats, BigIntStats } from "./stats.js";
69
- import { Dirent } from "./dirent.js";
70
- import {
71
- utimesSync,
72
- utimes,
73
- lutimesSync,
74
- lutimes,
75
- lchownSync,
76
- lchown,
77
- lchmodSync,
78
- lchmod
79
- } from "./utimes.js";
80
- import {
81
- fstatSync,
82
- fstat,
83
- ftruncateSync,
84
- ftruncate,
85
- fdatasyncSync,
86
- fdatasync,
87
- fsyncSync,
88
- fsync,
89
- fchmodSync,
90
- fchmod,
91
- fchownSync,
92
- fchown,
93
- futimesSync,
94
- futimes,
95
- closeSync,
96
- readSync,
97
- writeSync,
98
- readvSync,
99
- readv,
100
- writevSync,
101
- writev,
102
- exists,
103
- openAsBlob
104
- } from "./fd-ops.js";
10
+ import { statfs, statfsSync } from "./statfs.js";
11
+ import { lchmod, lchmodSync, lchown, lchownSync, lutimes, lutimesSync, utimes, utimesSync } from "./utimes.js";
12
+ import { closeSync, exists, fchmod, fchmodSync, fchown, fchownSync, fdatasync, fdatasyncSync, fstat, fstatSync, fsync, fsyncSync, ftruncate, ftruncateSync, futimes, futimesSync, openAsBlob, readSync, readv, readvSync, writeSync, writev, writevSync } from "./fd-ops.js";
13
+ import { promises_exports } from "./promises.js";
14
+ import { access, appendFile, chmod, chown, close, copyFile, link, lstat, mkdir, open, read, readFile, readdir, readlink, realpath, rename, rm, rmdir, stat, symlink, truncate, unlink, write, writeFile } from "./callback.js";
15
+ import { StatWatcher, unwatchFile, watchFile } from "./stat-watcher.js";
16
+
17
+ //#region src/index.ts
105
18
  const constants = {
106
- // File access constants
107
- F_OK: 0,
108
- R_OK: 4,
109
- W_OK: 2,
110
- X_OK: 1,
111
- // File copy constants
112
- COPYFILE_EXCL: 1,
113
- COPYFILE_FICLONE: 2,
114
- COPYFILE_FICLONE_FORCE: 4,
115
- // File open constants
116
- O_RDONLY: 0,
117
- O_WRONLY: 1,
118
- O_RDWR: 2,
119
- O_CREAT: 64,
120
- O_EXCL: 128,
121
- O_TRUNC: 512,
122
- O_APPEND: 1024,
123
- O_SYNC: 1052672,
124
- O_NONBLOCK: 2048,
125
- O_DIRECTORY: 65536,
126
- O_NOFOLLOW: 131072,
127
- // File type constants
128
- S_IFMT: 61440,
129
- S_IFREG: 32768,
130
- S_IFDIR: 16384,
131
- S_IFCHR: 8192,
132
- S_IFBLK: 24576,
133
- S_IFIFO: 4096,
134
- S_IFLNK: 40960,
135
- S_IFSOCK: 49152,
136
- // File mode constants
137
- S_IRWXU: 448,
138
- S_IRUSR: 256,
139
- S_IWUSR: 128,
140
- S_IXUSR: 64,
141
- S_IRWXG: 56,
142
- S_IRGRP: 32,
143
- S_IWGRP: 16,
144
- S_IXGRP: 8,
145
- S_IRWXO: 7,
146
- S_IROTH: 4,
147
- S_IWOTH: 2,
148
- S_IXOTH: 1
149
- };
150
- var index_default = {
151
- FSWatcher,
152
- StatWatcher,
153
- Stats,
154
- BigIntStats,
155
- Dirent,
156
- Dir,
157
- constants,
158
- existsSync,
159
- readdirSync,
160
- readFileSync,
161
- writeFileSync,
162
- mkdirSync,
163
- rmdirSync,
164
- unlinkSync,
165
- mkdtempSync,
166
- rmSync,
167
- statSync,
168
- openSync,
169
- realpathSync,
170
- symlinkSync,
171
- lstatSync,
172
- renameSync,
173
- copyFileSync,
174
- accessSync,
175
- appendFileSync,
176
- readlinkSync,
177
- linkSync,
178
- truncateSync,
179
- chmodSync,
180
- chownSync,
181
- cpSync,
182
- opendirSync,
183
- globSync,
184
- glob,
185
- watch,
186
- watchFile,
187
- unwatchFile,
188
- statfsSync,
189
- statfs,
190
- utimesSync,
191
- utimes,
192
- lutimesSync,
193
- lutimes,
194
- lchownSync,
195
- lchown,
196
- lchmodSync,
197
- lchmod,
198
- fstatSync,
199
- fstat,
200
- ftruncateSync,
201
- ftruncate,
202
- fdatasyncSync,
203
- fdatasync,
204
- fsyncSync,
205
- fsync,
206
- fchmodSync,
207
- fchmod,
208
- fchownSync,
209
- fchown,
210
- futimesSync,
211
- futimes,
212
- closeSync,
213
- readSync,
214
- writeSync,
215
- readvSync,
216
- readv,
217
- writevSync,
218
- writev,
219
- exists,
220
- openAsBlob,
221
- createReadStream,
222
- ReadStream,
223
- createWriteStream,
224
- WriteStream,
225
- promises,
226
- open,
227
- close,
228
- read,
229
- write,
230
- rm,
231
- realpath,
232
- readdir,
233
- symlink,
234
- lstat,
235
- stat,
236
- rename,
237
- copyFile,
238
- cp,
239
- access,
240
- appendFile,
241
- readlink,
242
- truncate,
243
- chmod,
244
- chown,
245
- mkdir,
246
- rmdir,
247
- readFile,
248
- writeFile,
249
- unlink,
250
- link,
251
- opendir
19
+ F_OK: 0,
20
+ R_OK: 4,
21
+ W_OK: 2,
22
+ X_OK: 1,
23
+ COPYFILE_EXCL: 1,
24
+ COPYFILE_FICLONE: 2,
25
+ COPYFILE_FICLONE_FORCE: 4,
26
+ O_RDONLY: 0,
27
+ O_WRONLY: 1,
28
+ O_RDWR: 2,
29
+ O_CREAT: 64,
30
+ O_EXCL: 128,
31
+ O_TRUNC: 512,
32
+ O_APPEND: 1024,
33
+ O_SYNC: 1052672,
34
+ O_NONBLOCK: 2048,
35
+ O_DIRECTORY: 65536,
36
+ O_NOFOLLOW: 131072,
37
+ S_IFMT: 61440,
38
+ S_IFREG: 32768,
39
+ S_IFDIR: 16384,
40
+ S_IFCHR: 8192,
41
+ S_IFBLK: 24576,
42
+ S_IFIFO: 4096,
43
+ S_IFLNK: 40960,
44
+ S_IFSOCK: 49152,
45
+ S_IRWXU: 448,
46
+ S_IRUSR: 256,
47
+ S_IWUSR: 128,
48
+ S_IXUSR: 64,
49
+ S_IRWXG: 56,
50
+ S_IRGRP: 32,
51
+ S_IWGRP: 16,
52
+ S_IXGRP: 8,
53
+ S_IRWXO: 7,
54
+ S_IROTH: 4,
55
+ S_IWOTH: 2,
56
+ S_IXOTH: 1
252
57
  };
253
- export {
254
- BigIntStats,
255
- Dir,
256
- Dirent,
257
- FSWatcher,
258
- ReadStream,
259
- StatWatcher,
260
- Stats,
261
- WriteStream,
262
- access,
263
- accessSync,
264
- appendFile,
265
- appendFileSync,
266
- chmod,
267
- chmodSync,
268
- chown,
269
- chownSync,
270
- close,
271
- closeSync,
272
- constants,
273
- copyFile,
274
- copyFileSync,
275
- cp,
276
- cpSync,
277
- createReadStream,
278
- createWriteStream,
279
- index_default as default,
280
- exists,
281
- existsSync,
282
- fchmod,
283
- fchmodSync,
284
- fchown,
285
- fchownSync,
286
- fdatasync,
287
- fdatasyncSync,
288
- fstat,
289
- fstatSync,
290
- fsync,
291
- fsyncSync,
292
- ftruncate,
293
- ftruncateSync,
294
- futimes,
295
- futimesSync,
296
- glob,
297
- globSync,
298
- lchmod,
299
- lchmodSync,
300
- lchown,
301
- lchownSync,
302
- link,
303
- linkSync,
304
- lstat,
305
- lstatSync,
306
- lutimes,
307
- lutimesSync,
308
- mkdir,
309
- mkdirSync,
310
- mkdtempSync,
311
- open,
312
- openAsBlob,
313
- openSync,
314
- opendir,
315
- opendirSync,
316
- promises,
317
- read,
318
- readFile,
319
- readFileSync,
320
- readSync,
321
- readdir,
322
- readdirSync,
323
- readlink,
324
- readlinkSync,
325
- readv,
326
- readvSync,
327
- realpath,
328
- realpathSync,
329
- rename,
330
- renameSync,
331
- rm,
332
- rmSync,
333
- rmdir,
334
- rmdirSync,
335
- stat,
336
- statSync,
337
- statfs,
338
- statfsSync,
339
- symlink,
340
- symlinkSync,
341
- truncate,
342
- truncateSync,
343
- unlink,
344
- unlinkSync,
345
- unwatchFile,
346
- utimes,
347
- utimesSync,
348
- watch,
349
- watchFile,
350
- write,
351
- writeFile,
352
- writeFileSync,
353
- writeSync,
354
- writev,
355
- writevSync
58
+ var src_default = {
59
+ FSWatcher,
60
+ StatWatcher,
61
+ Stats,
62
+ BigIntStats,
63
+ Dirent,
64
+ Dir,
65
+ constants,
66
+ existsSync,
67
+ readdirSync,
68
+ readFileSync,
69
+ writeFileSync,
70
+ mkdirSync,
71
+ rmdirSync,
72
+ unlinkSync,
73
+ mkdtempSync,
74
+ rmSync,
75
+ statSync,
76
+ openSync,
77
+ realpathSync,
78
+ symlinkSync,
79
+ lstatSync,
80
+ renameSync,
81
+ copyFileSync,
82
+ accessSync,
83
+ appendFileSync,
84
+ readlinkSync,
85
+ linkSync,
86
+ truncateSync,
87
+ chmodSync,
88
+ chownSync,
89
+ cpSync,
90
+ opendirSync,
91
+ globSync,
92
+ glob,
93
+ watch,
94
+ watchFile,
95
+ unwatchFile,
96
+ statfsSync,
97
+ statfs,
98
+ utimesSync,
99
+ utimes,
100
+ lutimesSync,
101
+ lutimes,
102
+ lchownSync,
103
+ lchown,
104
+ lchmodSync,
105
+ lchmod,
106
+ fstatSync,
107
+ fstat,
108
+ ftruncateSync,
109
+ ftruncate,
110
+ fdatasyncSync,
111
+ fdatasync,
112
+ fsyncSync,
113
+ fsync,
114
+ fchmodSync,
115
+ fchmod,
116
+ fchownSync,
117
+ fchown,
118
+ futimesSync,
119
+ futimes,
120
+ closeSync,
121
+ readSync,
122
+ writeSync,
123
+ readvSync,
124
+ readv,
125
+ writevSync,
126
+ writev,
127
+ exists,
128
+ openAsBlob,
129
+ createReadStream,
130
+ ReadStream,
131
+ createWriteStream,
132
+ WriteStream,
133
+ promises: promises_exports,
134
+ open,
135
+ close,
136
+ read,
137
+ write,
138
+ rm,
139
+ realpath,
140
+ readdir,
141
+ symlink,
142
+ lstat,
143
+ stat,
144
+ rename,
145
+ copyFile,
146
+ cp,
147
+ access,
148
+ appendFile,
149
+ readlink,
150
+ truncate,
151
+ chmod,
152
+ chown,
153
+ mkdir,
154
+ rmdir,
155
+ readFile,
156
+ writeFile,
157
+ unlink,
158
+ link,
159
+ opendir
356
160
  };
161
+
162
+ //#endregion
163
+ export { BigIntStats, Dir, Dirent, FSWatcher, ReadStream, StatWatcher, Stats, WriteStream, access, accessSync, appendFile, appendFileSync, chmod, chmodSync, chown, chownSync, close, closeSync, constants, copyFile, copyFileSync, cp, cpSync, createReadStream, createWriteStream, src_default as default, exists, existsSync, fchmod, fchmodSync, fchown, fchownSync, fdatasync, fdatasyncSync, fstat, fstatSync, fsync, fsyncSync, ftruncate, ftruncateSync, futimes, futimesSync, glob, globSync, lchmod, lchmodSync, lchown, lchownSync, link, linkSync, lstat, lstatSync, lutimes, lutimesSync, mkdir, mkdirSync, mkdtempSync, open, openAsBlob, openSync, opendir, opendirSync, promises_exports as promises, read, readFile, readFileSync, readSync, readdir, readdirSync, readlink, readlinkSync, readv, readvSync, realpath, realpathSync, rename, renameSync, rm, rmSync, rmdir, rmdirSync, stat, statSync, statfs, statfsSync, symlink, symlinkSync, truncate, truncateSync, unlink, unlinkSync, unwatchFile, utimes, utimesSync, watch, watchFile, write, writeFile, writeFileSync, writeSync, writev, writevSync };