@reliverse/relifso 1.4.4 → 2.2.7

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 (92) hide show
  1. package/README.md +371 -367
  2. package/dist/copy.d.ts +3 -0
  3. package/dist/copy.js +95 -0
  4. package/dist/dir.d.ts +13 -0
  5. package/dist/dir.js +113 -0
  6. package/dist/file.d.ts +12 -0
  7. package/dist/file.js +169 -0
  8. package/dist/helpers.d.ts +3 -0
  9. package/dist/helpers.js +38 -0
  10. package/dist/internal/fs.d.ts +16 -0
  11. package/dist/internal/fs.js +32 -0
  12. package/dist/internal/path.d.ts +3 -0
  13. package/dist/internal/path.js +11 -0
  14. package/dist/links.d.ts +3 -0
  15. package/dist/links.js +74 -0
  16. package/dist/mod.d.ts +40 -0
  17. package/dist/mod.js +77 -0
  18. package/dist/types.d.ts +50 -0
  19. package/dist/types.js +0 -0
  20. package/package.json +15 -42
  21. package/LICENSE +0 -21
  22. package/LICENSES +0 -16
  23. package/bin/impl/bun.d.ts +0 -11
  24. package/bin/impl/bun.js +0 -23
  25. package/bin/impl/copy.d.ts +0 -40
  26. package/bin/impl/copy.js +0 -229
  27. package/bin/impl/create.d.ts +0 -34
  28. package/bin/impl/create.js +0 -54
  29. package/bin/impl/dive.d.ts +0 -27
  30. package/bin/impl/dive.js +0 -145
  31. package/bin/impl/empty.d.ts +0 -28
  32. package/bin/impl/empty.js +0 -75
  33. package/bin/impl/extras.d.ts +0 -35
  34. package/bin/impl/extras.js +0 -112
  35. package/bin/impl/json-utils.d.ts +0 -30
  36. package/bin/impl/json-utils.js +0 -46
  37. package/bin/impl/mkdirs.d.ts +0 -7
  38. package/bin/impl/mkdirs.js +0 -28
  39. package/bin/impl/move.d.ts +0 -28
  40. package/bin/impl/move.js +0 -140
  41. package/bin/impl/output-file.d.ts +0 -17
  42. package/bin/impl/output-file.js +0 -15
  43. package/bin/impl/output-json.d.ts +0 -21
  44. package/bin/impl/output-json.js +0 -77
  45. package/bin/impl/path-exists.d.ts +0 -2
  46. package/bin/impl/path-exists.js +0 -16
  47. package/bin/impl/read-file.d.ts +0 -31
  48. package/bin/impl/read-file.js +0 -165
  49. package/bin/impl/read-json.d.ts +0 -31
  50. package/bin/impl/read-json.js +0 -241
  51. package/bin/impl/remove.d.ts +0 -2
  52. package/bin/impl/remove.js +0 -8
  53. package/bin/impl/stats.d.ts +0 -31
  54. package/bin/impl/stats.js +0 -141
  55. package/bin/impl/write-file.d.ts +0 -31
  56. package/bin/impl/write-file.js +0 -177
  57. package/bin/impl/write-json.d.ts +0 -41
  58. package/bin/impl/write-json.js +0 -135
  59. package/bin/mod.d.ts +0 -253
  60. package/bin/mod.js +0 -514
  61. package/bin/utils/json/helpers/JSONRepairError.d.ts +0 -4
  62. package/bin/utils/json/helpers/JSONRepairError.js +0 -7
  63. package/bin/utils/json/helpers/JsonSchemaError.d.ts +0 -6
  64. package/bin/utils/json/helpers/JsonSchemaError.js +0 -6
  65. package/bin/utils/json/helpers/stringUtils.d.ts +0 -64
  66. package/bin/utils/json/helpers/stringUtils.js +0 -87
  67. package/bin/utils/json/regular/jsonc.d.ts +0 -45
  68. package/bin/utils/json/regular/jsonc.js +0 -88
  69. package/bin/utils/json/regular/jsonrepair.d.ts +0 -17
  70. package/bin/utils/json/regular/jsonrepair.js +0 -576
  71. package/bin/utils/json/regular/validate.d.ts +0 -22
  72. package/bin/utils/json/regular/validate.js +0 -52
  73. package/bin/utils/json/stream/JsonStreamError.d.ts +0 -6
  74. package/bin/utils/json/stream/JsonStreamError.js +0 -6
  75. package/bin/utils/json/stream/buffer/InputBuffer.d.ts +0 -13
  76. package/bin/utils/json/stream/buffer/InputBuffer.js +0 -68
  77. package/bin/utils/json/stream/buffer/OutputBuffer.d.ts +0 -17
  78. package/bin/utils/json/stream/buffer/OutputBuffer.js +0 -101
  79. package/bin/utils/json/stream/core.d.ts +0 -10
  80. package/bin/utils/json/stream/core.js +0 -695
  81. package/bin/utils/json/stream/jsonl.d.ts +0 -21
  82. package/bin/utils/json/stream/jsonl.js +0 -55
  83. package/bin/utils/json/stream/parser.d.ts +0 -14
  84. package/bin/utils/json/stream/parser.js +0 -81
  85. package/bin/utils/json/stream/stack.d.ts +0 -19
  86. package/bin/utils/json/stream/stack.js +0 -43
  87. package/bin/utils/json/stream/stream.d.ts +0 -6
  88. package/bin/utils/json/stream/stream.js +0 -30
  89. package/bin/utils/json/stream/writer.d.ts +0 -14
  90. package/bin/utils/json/stream/writer.js +0 -44
  91. package/bin/utils/log.d.ts +0 -1
  92. package/bin/utils/log.js +0 -7
package/bin/mod.d.ts DELETED
@@ -1,253 +0,0 @@
1
- import { renameSync as nodeRenameSync, unlinkSync as nodeUnlinkSync, accessSync, constants, readdirSync, statSync, copyFileSync, appendFileSync, chmodSync, chownSync, closeSync, createReadStream, createWriteStream, fchmodSync, fchownSync, fdatasyncSync, fstatSync, fsyncSync, ftruncateSync, futimesSync, lchmodSync, lchownSync, linkSync, lstatSync, lutimesSync, mkdtempSync, openSync, opendirSync, readSync, readlinkSync, realpathSync, rmSync, rmdirSync, statfsSync, symlinkSync, truncateSync, unwatchFile, utimesSync, watchFile, writeFileSync, writeSync, readvSync, writevSync } from "node:fs";
2
- import { rename as nodeRename, unlink as nodeUnlink, access, appendFile, chmod, chown, copyFile, lchmod, lchown, link, lstat, lutimes, mkdtemp, open, opendir, readdir, readlink, realpath, rm, rmdir, stat, statfs, symlink, truncate, utimes, watch, writeFile } from "node:fs/promises";
3
- import { resolve } from "node:path";
4
- import { getFileBun, getFileTypeBun, isBun } from "./impl/bun";
5
- import { copy, copySync } from "./impl/copy";
6
- import { createFile, createFileSync, createDir, createDirs, createFiles, createDirSync, createDirsSync, createFilesSync } from "./impl/create";
7
- import { dive, diveSync } from "./impl/dive";
8
- import { emptyDir, emptyDirSync, emptyObject, emptyFile, emptyFileSync } from "./impl/empty";
9
- import { readText, readTextSync, readLines, readLinesSync, isDirectory, isDirectorySync, isSymlink, isSymlinkSync, execAsync, isDirectoryEmpty, isHiddenAttribute, rmEnsureDir, setHiddenAttribute } from "./impl/extras";
10
- import { validateAndRepairJson } from "./impl/json-utils";
11
- import { mkdirs, mkdirsSync } from "./impl/mkdirs";
12
- import { move, moveSync } from "./impl/move";
13
- import { outputFile, outputFileSync } from "./impl/output-file";
14
- import { outputJson, outputJsonSync } from "./impl/output-json";
15
- import { pathExists, pathExistsSync } from "./impl/path-exists";
16
- import { readFile, readFileSync } from "./impl/read-file";
17
- import { readJson, readJsonSync } from "./impl/read-json";
18
- import { remove, removeSync } from "./impl/remove";
19
- import { getFileExists, getFileLastModified, getFileSize, getStats, getStatsSync, toNodeStats } from "./impl/stats";
20
- import { writeJson, writeJsonSync } from "./impl/write-json";
21
- import { JSONRepairError } from "./utils/json/helpers/JSONRepairError";
22
- import { JsonSchemaError } from "./utils/json/helpers/JsonSchemaError";
23
- import { extractComments } from "./utils/json/regular/jsonc";
24
- import { jsonrepair } from "./utils/json/regular/jsonrepair";
25
- import { validateJson } from "./utils/json/regular/validate";
26
- import { createInputBuffer } from "./utils/json/stream/buffer/InputBuffer";
27
- import { createOutputBuffer } from "./utils/json/stream/buffer/OutputBuffer";
28
- import { jsonrepairCore } from "./utils/json/stream/core";
29
- import { createJsonlParser } from "./utils/json/stream/jsonl";
30
- import { createJsonlWriter } from "./utils/json/stream/jsonl";
31
- import { JsonStreamError } from "./utils/json/stream/JsonStreamError";
32
- import { createJsonStreamParser } from "./utils/json/stream/parser";
33
- import { jsonrepairTransform } from "./utils/json/stream/stream";
34
- import { createJsonStreamWriter } from "./utils/json/stream/writer";
35
- declare const mkdirp: typeof mkdirs;
36
- declare const ensureDir: typeof mkdirs;
37
- declare const ensureFile: typeof createFile;
38
- declare const rimraf: typeof remove;
39
- declare const ncp: typeof copy;
40
- declare const mkdirpSync: typeof mkdirsSync;
41
- declare const ensureDirSync: typeof mkdirsSync;
42
- declare const ensureFileSync: typeof createFileSync;
43
- declare const rimrafSync: typeof removeSync;
44
- declare const ncpSync: typeof copySync;
45
- declare const mkdir: typeof mkdirs;
46
- declare const mkdirSync: typeof mkdirsSync;
47
- declare const unlink: typeof remove;
48
- declare const unlinkSync: typeof removeSync;
49
- declare const rename: typeof move;
50
- declare const renameSync: typeof moveSync;
51
- declare const readJSON: typeof readJson;
52
- declare const readJSONSync: typeof readJsonSync;
53
- declare const writeJSON: typeof writeJson;
54
- declare const writeJSONSync: typeof writeJsonSync;
55
- declare const outputJSON: typeof outputJson;
56
- declare const outputJSONSync: typeof outputJsonSync;
57
- declare const cp: typeof copy;
58
- declare const cpSync: typeof copySync;
59
- declare const exists: typeof pathExists;
60
- declare const existsSync: typeof pathExistsSync;
61
- declare const jsonRepairRegular: typeof jsonrepair;
62
- export type { CopyOptions } from "./impl/copy";
63
- export type { MoveOptions } from "./impl/move";
64
- export type { ReadFileOptions } from "./impl/read-file";
65
- export type { ReadJsonOptions } from "./impl/read-json";
66
- export type { JsonStringifyOptions } from "./impl/write-json";
67
- export type { WriteJsonOptions } from "./impl/write-json";
68
- export type { WriteFileOptions } from "./impl/write-file";
69
- export type { DiveOptions } from "./impl/dive";
70
- export type { JsonRepairTransformOptions } from "./utils/json/stream/stream";
71
- export type { OutputJsonOptions } from "./impl/output-json";
72
- export type { JSONSchema } from "./utils/json/regular/validate";
73
- export type { InputBuffer } from "./utils/json/stream/buffer/InputBuffer";
74
- export type { OutputBuffer, OutputBufferOptions } from "./utils/json/stream/buffer/OutputBuffer";
75
- export type { JsonRepairCoreOptions, JsonRepairCore } from "./utils/json/stream/core";
76
- export type { Text } from "./utils/json/helpers/stringUtils";
77
- export type { JsoncParseOptions, JsoncStringifyOptions } from "./utils/json/regular/jsonc";
78
- export { accessSync, appendFileSync, chmodSync, chownSync, closeSync, copyFileSync, createReadStream, createWriteStream, fchmodSync, fchownSync, fdatasyncSync, fstatSync, fsyncSync, ftruncateSync, futimesSync, lchmodSync, lchownSync, linkSync, lstatSync, lutimesSync, mkdtempSync, openSync, opendirSync, readFileSync, readlinkSync, readSync, readdirSync, realpathSync, nodeRenameSync, rmSync, rmdirSync, statSync, statfsSync, symlinkSync, truncateSync, nodeUnlinkSync, unwatchFile, utimesSync, watchFile, writeFileSync, writeSync, readvSync, writevSync, readJsonSync, writeJsonSync, createFileSync, createDirSync, createDirsSync, createFilesSync, emptyFileSync, mkdirsSync, emptyDirSync, pathExistsSync, copySync, moveSync, removeSync, outputJsonSync, outputFileSync, diveSync, cpSync, ensureDirSync as ensuredirSync, ensureDirSync, ensureFileSync, existsSync, mkdirpSync, mkdirSync, ncpSync, outputJSONSync, readJSONSync, renameSync, rimrafSync, unlinkSync, writeJSONSync, isDirectorySync, isSymlinkSync, readLinesSync, readTextSync, readJson, writeJson, createFile, createDir, createDirs, createFiles, emptyFile, mkdirs, emptyDir, pathExists, copy, move, remove, outputJson, outputFile, access, appendFile, chmod, chown, copyFile, lchmod, lchown, link, lstat, lutimes, mkdtemp, open, opendir, readFile, readdir, readlink, realpath, nodeRename, rm, rmdir, stat, statfs, symlink, truncate, nodeUnlink, utimes, watch, writeFile, constants, cp, ensureDir as ensuredir, ensureDir, ensureFile, exists, mkdir, mkdirp, ncp, outputJSON, readJSON, rename, resolve, rimraf, unlink, writeJSON, isDirectory, isSymlink, readLines, readText, execAsync, setHiddenAttribute, isHiddenAttribute, isDirectoryEmpty, rmEnsureDir, dive, getFileExists, getFileLastModified, getFileSize, getStats, getStatsSync, emptyObject, getFileBun, getFileTypeBun, toNodeStats, isBun, jsonrepair, jsonRepairRegular, createInputBuffer, createOutputBuffer, jsonrepairCore, JSONRepairError, jsonrepairTransform, validateAndRepairJson, validateJson, JsonSchemaError, createJsonStreamParser, createJsonStreamWriter, JsonStreamError, createJsonlParser, createJsonlWriter, extractComments, };
79
- declare const fs: {
80
- accessSync: typeof accessSync;
81
- appendFileSync: typeof appendFileSync;
82
- chmodSync: typeof chmodSync;
83
- chownSync: typeof chownSync;
84
- closeSync: typeof closeSync;
85
- copyFileSync: typeof copyFileSync;
86
- createReadStream: typeof createReadStream;
87
- createWriteStream: typeof createWriteStream;
88
- fchmodSync: typeof fchmodSync;
89
- fchownSync: typeof fchownSync;
90
- fdatasyncSync: typeof fdatasyncSync;
91
- fstatSync: typeof fstatSync;
92
- fsyncSync: typeof fsyncSync;
93
- ftruncateSync: typeof ftruncateSync;
94
- futimesSync: typeof futimesSync;
95
- lchmodSync: typeof lchmodSync;
96
- lchownSync: typeof lchownSync;
97
- linkSync: typeof linkSync;
98
- lstatSync: import("fs").StatSyncFn;
99
- lutimesSync: typeof lutimesSync;
100
- mkdtempSync: typeof mkdtempSync;
101
- openSync: typeof openSync;
102
- opendirSync: typeof opendirSync;
103
- readFileSync: typeof readFileSync;
104
- readlinkSync: typeof readlinkSync;
105
- readSync: typeof readSync;
106
- readdirSync: typeof readdirSync;
107
- realpathSync: typeof realpathSync;
108
- nodeRenameSync: typeof nodeRenameSync;
109
- rmSync: typeof rmSync;
110
- rmdirSync: typeof rmdirSync;
111
- statSync: import("fs").StatSyncFn;
112
- statfsSync: typeof statfsSync;
113
- symlinkSync: typeof symlinkSync;
114
- truncateSync: typeof truncateSync;
115
- nodeUnlinkSync: typeof nodeUnlinkSync;
116
- unwatchFile: typeof unwatchFile;
117
- utimesSync: typeof utimesSync;
118
- watchFile: typeof watchFile;
119
- writeFileSync: typeof writeFileSync;
120
- writeSync: typeof writeSync;
121
- readvSync: typeof readvSync;
122
- writevSync: typeof writevSync;
123
- readJsonSync: typeof readJsonSync;
124
- writeJsonSync: typeof writeJsonSync;
125
- createFileSync: typeof createFileSync;
126
- createDirSync: typeof createDirSync;
127
- createDirsSync: typeof createDirsSync;
128
- createFilesSync: typeof createFilesSync;
129
- emptyFileSync: typeof emptyFileSync;
130
- mkdirsSync: typeof mkdirsSync;
131
- emptyDirSync: typeof emptyDirSync;
132
- pathExistsSync: typeof pathExistsSync;
133
- copySync: typeof copySync;
134
- moveSync: typeof moveSync;
135
- removeSync: typeof removeSync;
136
- outputJsonSync: typeof outputJsonSync;
137
- outputFileSync: typeof outputFileSync;
138
- diveSync: typeof diveSync;
139
- cpSync: typeof copySync;
140
- ensuredirSync: typeof mkdirsSync;
141
- ensureDirSync: typeof mkdirsSync;
142
- ensureFileSync: typeof createFileSync;
143
- existsSync: typeof pathExistsSync;
144
- mkdirpSync: typeof mkdirsSync;
145
- mkdirSync: typeof mkdirsSync;
146
- ncpSync: typeof copySync;
147
- outputJSONSync: typeof outputJsonSync;
148
- readJSONSync: typeof readJsonSync;
149
- renameSync: typeof moveSync;
150
- rimrafSync: typeof removeSync;
151
- unlinkSync: typeof removeSync;
152
- writeJSONSync: typeof writeJsonSync;
153
- isDirectorySync: typeof isDirectorySync;
154
- isSymlinkSync: typeof isSymlinkSync;
155
- readLinesSync: typeof readLinesSync;
156
- readTextSync: typeof readTextSync;
157
- readJson: typeof readJson;
158
- writeJson: typeof writeJson;
159
- createFile: typeof createFile;
160
- createDir: typeof createDir;
161
- createDirs: typeof createDirs;
162
- createFiles: typeof createFiles;
163
- emptyFile: typeof emptyFile;
164
- mkdirs: typeof mkdirs;
165
- emptyDir: typeof emptyDir;
166
- pathExists: typeof pathExists;
167
- copy: typeof copy;
168
- move: typeof move;
169
- remove: typeof remove;
170
- outputJson: typeof outputJson;
171
- outputFile: typeof outputFile;
172
- access: typeof access;
173
- appendFile: typeof appendFile;
174
- chmod: typeof chmod;
175
- chown: typeof chown;
176
- copyFile: typeof copyFile;
177
- lchmod: typeof lchmod;
178
- lchown: typeof lchown;
179
- link: typeof link;
180
- lstat: typeof lstat;
181
- lutimes: typeof lutimes;
182
- mkdtemp: typeof mkdtemp;
183
- open: typeof open;
184
- opendir: typeof opendir;
185
- readFile: typeof readFile;
186
- readdir: typeof readdir;
187
- readlink: typeof readlink;
188
- realpath: typeof realpath;
189
- nodeRename: typeof nodeRename;
190
- rm: typeof rm;
191
- rmdir: typeof rmdir;
192
- stat: typeof stat;
193
- statfs: typeof statfs;
194
- symlink: typeof symlink;
195
- truncate: typeof truncate;
196
- nodeUnlink: typeof nodeUnlink;
197
- utimes: typeof utimes;
198
- watch: typeof watch;
199
- writeFile: typeof writeFile;
200
- constants: typeof constants;
201
- cp: typeof copy;
202
- ensureDir: typeof mkdirs;
203
- ensuredir: typeof mkdirs;
204
- ensureFile: typeof createFile;
205
- exists: typeof pathExists;
206
- mkdir: typeof mkdirs;
207
- mkdirp: typeof mkdirs;
208
- ncp: typeof copy;
209
- outputJSON: typeof outputJson;
210
- readJSON: typeof readJson;
211
- rename: typeof move;
212
- resolve: (...paths: string[]) => string;
213
- rimraf: typeof remove;
214
- unlink: typeof remove;
215
- writeJSON: typeof writeJson;
216
- isDirectory: typeof isDirectory;
217
- isSymlink: typeof isSymlink;
218
- readLines: typeof readLines;
219
- readText: typeof readText;
220
- execAsync: typeof import("child_process").exec.__promisify__;
221
- setHiddenAttribute: typeof setHiddenAttribute;
222
- isHiddenAttribute: typeof isHiddenAttribute;
223
- isDirectoryEmpty: typeof isDirectoryEmpty;
224
- rmEnsureDir: typeof rmEnsureDir;
225
- dive: typeof dive;
226
- getFileExists: typeof getFileExists;
227
- getFileLastModified: typeof getFileLastModified;
228
- getFileSize: typeof getFileSize;
229
- getStats: typeof getStats;
230
- getStatsSync: typeof getStatsSync;
231
- emptyObject: typeof emptyObject;
232
- getFileBun: typeof getFileBun;
233
- getFileTypeBun: typeof getFileTypeBun;
234
- toNodeStats: typeof toNodeStats;
235
- isBun: string | false;
236
- jsonrepair: typeof jsonrepair;
237
- jsonRepairRegular: typeof jsonrepair;
238
- createInputBuffer: typeof createInputBuffer;
239
- createOutputBuffer: typeof createOutputBuffer;
240
- jsonrepairCore: typeof jsonrepairCore;
241
- JSONRepairError: typeof JSONRepairError;
242
- jsonrepairTransform: typeof jsonrepairTransform;
243
- validateAndRepairJson: typeof validateAndRepairJson;
244
- validateJson: typeof validateJson;
245
- JsonSchemaError: typeof JsonSchemaError;
246
- createJsonStreamParser: typeof createJsonStreamParser;
247
- createJsonStreamWriter: typeof createJsonStreamWriter;
248
- JsonStreamError: typeof JsonStreamError;
249
- createJsonlParser: typeof createJsonlParser;
250
- createJsonlWriter: typeof createJsonlWriter;
251
- extractComments: typeof extractComments;
252
- };
253
- export default fs;