@reliverse/relifso 1.2.1 → 1.2.3

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/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # Relifso • Node.js Filesystem Toolkit Library
2
2
 
3
- [sponsor](https://github.com/sponsors/blefnk) [discord](https://discord.gg/Pb8uKbwpsJ) [npm](https://npmjs.com/package/@reliverse/relifso)[repo](https://github.com/reliverse/relifso)
3
+ > @reliverse/relifso is a modern filesystem toolkit for builders. drop-in replacement for `node:fs` and `fs-extra` powered by native promises, built with es modules, and packed with dx-focused utilities.
4
4
 
5
- > **@reliverse/relifso** is a modern filesystem toolkit for builders. Drop-in replacement for `node:fs` and `fs-extra` powered by native promises, built with ES modules, and packed with DX-focused utilities.
5
+ [sponsor](https://github.com/sponsors/blefnk) [discord](https://discord.gg/Pb8uKbwpsJ) [npm](https://npmjs.com/package/@reliverse/relifso)[github](https://github.com/reliverse/relifso)
6
+
7
+ ## Features
6
8
 
7
9
  - 🪄 Everything you love from `fs-extra` — now simpler, cleaner, and more beginner-friendly
8
10
  - ⚙️ Drop-in replacement for `node:fs` — with native `Promise`, `async/await`, and sync variants
@@ -285,7 +287,7 @@ All async methods return a `Promise` if no callback is passed.
285
287
 
286
288
  Relifso wouldn’t be so cool without these gems:
287
289
 
288
- - [node:fs](https://nodejs.org/api/fs.html)+[node:path](https://nodejs.org/api/path.html) — origins
290
+ - [`node:fs`](https://nodejs.org/api/fs.html)+[`node:path`](https://nodejs.org/api/path.html) — origins
289
291
  - [`fs-extra`](https://github.com/jprichardson/node-fs-extra) — classic, reliable
290
292
  - [`fsxt`](https://github.com/uwx-node-modules/fsxt) — full fs-extra overhaul
291
293
 
package/bin/mod.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Stats } from "node:fs";
2
- import { readdir, stat } from "node:fs/promises";
2
+ import { readdir as nodeReaddirInternal, stat as nodeStatInternal, readdir, stat } from "node:fs/promises";
3
3
  import type { DiveOptions } from "./impl/dive.js";
4
4
  import { copy, copySync } from "./impl/copy.js";
5
5
  import { createFile, createFileSync } from "./impl/create-file.js";
@@ -27,10 +27,53 @@ declare const ensureDirSync: typeof mkdirsSync;
27
27
  declare const ensureFileSync: typeof createFileSync;
28
28
  declare const rimrafSync: typeof removeSync;
29
29
  declare const ncpSync: typeof copySync;
30
- 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, };
31
30
  export type { CopyOptions } from "./impl/copy.js";
32
31
  export type { MoveOptions } from "./impl/move.js";
33
32
  export type { ReadFileOptions } from "./impl/read-file.js";
34
33
  export type { ReadJsonOptions } from "./impl/read-json.js";
35
34
  export type { JsonStringifyOptions } from "./impl/write-json.js";
36
35
  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, };
37
+ declare const fs: {
38
+ readJson: typeof readJson;
39
+ writeJson: typeof writeJson;
40
+ createFile: typeof createFile;
41
+ writeFile: typeof writeFile;
42
+ readFile: typeof readFile;
43
+ mkdirs: typeof mkdirs;
44
+ emptyDir: typeof emptyDir;
45
+ pathExists: typeof pathExists;
46
+ copy: typeof copy;
47
+ move: typeof move;
48
+ remove: typeof remove;
49
+ readdir: typeof nodeReaddirInternal;
50
+ stat: typeof nodeStatInternal;
51
+ readJsonSync: typeof readJsonSync;
52
+ writeJsonSync: typeof writeJsonSync;
53
+ createFileSync: typeof createFileSync;
54
+ writeFileSync: typeof writeFileSync;
55
+ readFileSync: typeof readFileSync;
56
+ mkdirsSync: typeof mkdirsSync;
57
+ emptyDirSync: typeof emptyDirSync;
58
+ pathExistsSync: typeof pathExistsSync;
59
+ copySync: typeof copySync;
60
+ moveSync: typeof moveSync;
61
+ removeSync: typeof removeSync;
62
+ mkdirp: typeof mkdirs;
63
+ mkdirpSync: typeof mkdirsSync;
64
+ rimraf: typeof remove;
65
+ rimrafSync: typeof removeSync;
66
+ ncp: typeof copy;
67
+ ncpSync: typeof copySync;
68
+ ensureDir: typeof mkdirs;
69
+ ensureDirSync: typeof mkdirsSync;
70
+ ensureFile: typeof createFile;
71
+ ensureFileSync: typeof createFileSync;
72
+ outputJson: typeof outputJson;
73
+ outputJsonSync: typeof outputJsonSync;
74
+ outputFile: typeof outputFile;
75
+ outputFileSync: typeof outputFileSync;
76
+ dive: typeof dive;
77
+ diveSync: typeof diveSync;
78
+ };
79
+ export default fs;
package/bin/mod.js CHANGED
@@ -142,3 +142,49 @@ export {
142
142
  outputFileSync,
143
143
  diveSync
144
144
  };
145
+ const fs = {
146
+ // async methods
147
+ readJson,
148
+ writeJson,
149
+ createFile,
150
+ writeFile,
151
+ readFile,
152
+ mkdirs,
153
+ emptyDir,
154
+ pathExists,
155
+ copy,
156
+ move,
157
+ remove,
158
+ readdir,
159
+ stat,
160
+ // sync methods
161
+ readJsonSync,
162
+ writeJsonSync,
163
+ createFileSync,
164
+ writeFileSync,
165
+ readFileSync,
166
+ mkdirsSync,
167
+ emptyDirSync,
168
+ pathExistsSync,
169
+ copySync,
170
+ moveSync,
171
+ removeSync,
172
+ // alias
173
+ mkdirp,
174
+ mkdirpSync,
175
+ rimraf,
176
+ rimrafSync,
177
+ ncp,
178
+ ncpSync,
179
+ ensureDir,
180
+ ensureDirSync,
181
+ ensureFile,
182
+ ensureFileSync,
183
+ outputJson,
184
+ outputJsonSync,
185
+ outputFile,
186
+ outputFileSync,
187
+ dive,
188
+ diveSync
189
+ };
190
+ export default fs;
package/package.json CHANGED
@@ -1,18 +1,11 @@
1
1
  {
2
- "dependencies": {
3
- "@reliverse/relinka": "^1.4.5",
4
- "fs-extra": "^11.3.0",
5
- "jsonfile": "^6.1.0",
6
- "magic-string": "^0.30.17",
7
- "p-map": "^7.0.3",
8
- "zeptomatch": "^2.0.1"
9
- },
10
- "description": "@reliverse/relifso is a modern filesystem toolkit for builders. Drop-in replacement for node:fs and fs-extra — powered by native promises, built with ES modules, and packed with DX-focused utilities.",
2
+ "dependencies": {},
3
+ "description": "@reliverse/relifso is a modern filesystem toolkit for builders. drop-in replacement for `node:fs` and `fs-extra` — powered by native promises, built with es modules, and packed with dx-focused utilities.",
11
4
  "homepage": "https://docs.reliverse.org",
12
5
  "license": "MIT",
13
6
  "name": "@reliverse/relifso",
14
7
  "type": "module",
15
- "version": "1.2.1",
8
+ "version": "1.2.3",
16
9
  "keywords": [
17
10
  "fs",
18
11
  "file",
@@ -59,7 +52,7 @@
59
52
  "@types/klaw-sync": "^6.0.5",
60
53
  "@types/minimist": "^1.2.5",
61
54
  "@types/mocha": "^10.0.10",
62
- "@types/node": "^22.15.18",
55
+ "@types/node": "^22.15.19",
63
56
  "@types/proxyquire": "^1.3.31",
64
57
  "@types/universalify": "^1.0.3",
65
58
  "@types/verror": "^1.10.11",
@@ -70,7 +63,9 @@
70
63
  "eslint-config-google": "^0.14.0",
71
64
  "eslint-plugin-no-relative-import-paths": "^1.6.1",
72
65
  "eslint-plugin-perfectionist": "^4.13.0",
66
+ "fs-extra": "^11.3.0",
73
67
  "graceful-fs": "^4.2.11",
68
+ "jsonfile": "^6.1.0",
74
69
  "klaw": "^4.1.0",
75
70
  "klaw-sync": "^7.0.0",
76
71
  "knip": "^5.56.0",