@reliverse/relifso 1.0.0 → 1.1.1

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright (c) 2025 blefnk Nazar Kornienko, Reliverse, Bleverse
3
+ Copyright (c) Nazar Kornienko (blefnk), Reliverse
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # Reliverse Relifso
1
+ # Relifso • Node.js Filesystem Toolkit Library
2
2
 
3
- [💖 GitHub Sponsors](https://github.com/sponsors/blefnk) [📦 NPM](https://npmjs.com/package/@reliverse/relifso) [✨ Repo](https://github.com/reliverse/relifso) [💬 Discord](https://discord.gg/Pb8uKbwpsJ)
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)
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 Bun-specific features and DX-focused utilities.
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.
6
6
 
7
7
  - 🪄 Everything you love from `fs-extra` — now simpler, cleaner, and more beginner-friendly
8
8
  - ⚙️ Drop-in replacement for `node:fs` — with native `Promise`, `async/await`, and sync variants
@@ -15,18 +15,35 @@
15
15
  - 🧪 **Soon**: Ready for upcoming Node.js v22+ experimental features
16
16
  - ✌️ **Soon**: Bun v1.2+ ready — ships with Bun-aware enhancements out of the box
17
17
  - 🔥 **Soon**: Bun-specific features are exposed via `fs.*` when running on Bun
18
- - ✂️ **Soon**: We plan to divide Relifso into smaller packages like `-legacy`, `-bun`, `-cjs`, etc.
19
18
 
20
19
  ## Install
21
20
 
22
21
  ```bash
23
- bun add @reliverse/relifso
24
22
  # bun • pnpm • yarn • npm
23
+ bun add @reliverse/relifso
24
+ ```
25
+
26
+ **Migrate**:
27
+
28
+ ```bash
29
+ bun rm fs-extra
30
+ bun rm @types/fs-extra
31
+ # soon:
32
+ # bun add -D @reliverse/dler
33
+ # bun dler relifso node-fs to relifso
34
+ # bun dler relifso fs-extra to relifso
35
+ ```
36
+
37
+ **Coming soon**:
38
+
39
+ ```bash
40
+ bun add -D @reliverse/dler
41
+ bun dler relifso init ...
25
42
  ```
26
43
 
27
44
  ## Usage
28
45
 
29
- Check [./example/e-main.ts](./example/e-main.ts) for a full example. You can clone this repo and run via `bun dev`.
46
+ Check [./example/e-mod.ts](./example/e-mod.ts) for a full example. You can clone this repo and run via `bun dev`.
30
47
 
31
48
  Relifso works just like `fs-extra` — every method is promise-first, ergonomic, and future-ready.
32
49
 
@@ -251,8 +268,8 @@ All async methods return a `Promise` if no callback is passed.
251
268
 
252
269
  ## TODO
253
270
 
254
- - [x] Create usage example in [./example/e-main.ts](./example/e-main.ts)
255
- - [ ] Ensure [./example/e-main.ts](./example/e-main.ts) works 100% correctly
271
+ - [x] Create usage example in [./example/e-mod.ts](./example/e-mod.ts)
272
+ - [ ] Ensure [./example/e-mod.ts](./example/e-mod.ts) works 100% correctly
256
273
  - [ ] Consider using [@reliverse/repath](https://github.com/reliverse/repath) instead of just `node:path`.
257
274
  - [ ] Pass all `fs-extra` tests with Bun/Vitest (+ fix & improve them).
258
275
  - [ ] Convert all jsdoc comments to TypeScript types.
@@ -277,7 +294,4 @@ If `@reliverse/relifso` reduced the number of lines in your codebase:
277
294
 
278
295
  ## License
279
296
 
280
- Welcome to the Reliverse we build tools that builders want.
281
-
282
- MIT © 2025 [blefnk Nazar Kornienko](https://github.com/blefnk)
283
- `
297
+ [MIT](./LICENSE) © 2025 [Nazar Kornienko (blefnk)](https://github.com/blefnk)
@@ -1,6 +1,7 @@
1
1
  export type * from "../types.js";
2
2
  export type { CopyOptions, CopyOptionsSync, EnsureDirOptions, SymlinkType, MoveOptions, JsonOutputOptions, } from "fs-extra";
3
3
  export * from "./fs/index.js";
4
+ export { mkdirSync } from "./fs/index.js";
4
5
  export { default as vacuum } from "./external/vacuum.js";
5
6
  export { copy, copySync } from "./lib/copy/index.js";
6
7
  export { emptyDir, emptyDirSync } from "./lib/empty/index.js";
@@ -1,4 +1,5 @@
1
1
  export * from "./fs/index.js";
2
+ export { mkdirSync } from "./fs/index.js";
2
3
  export { default as vacuum } from "./external/vacuum.js";
3
4
  export { copy, copySync } from "./lib/copy/index.js";
4
5
  export { emptyDir, emptyDirSync } from "./lib/empty/index.js";
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "license": "MIT",
9
9
  "name": "@reliverse/relifso",
10
10
  "type": "module",
11
- "version": "1.0.0",
11
+ "version": "1.1.1",
12
12
  "keywords": [
13
13
  "fs",
14
14
  "file",
@@ -34,27 +34,21 @@
34
34
  "promise"
35
35
  ],
36
36
  "devDependencies": {
37
+ "@babel/plugin-transform-block-scoping": "^7.27.1",
37
38
  "@biomejs/biome": "1.9.4",
38
- "@eslint/js": "^9.25.0",
39
+ "@cspotcode/source-map-support": "^0.8.1",
40
+ "@eslint/js": "^9.26.0",
39
41
  "@reliverse/cli-cfg": "^1.6.5",
42
+ "@reliverse/dler": "^1.2.5",
40
43
  "@reliverse/relidler-cfg": "^1.1.3",
41
- "@stylistic/eslint-plugin": "^4.2.0",
42
- "@types/node": "^22.14.1",
43
- "eslint": "^9.25.0",
44
- "eslint-plugin-no-relative-import-paths": "^1.6.1",
45
- "eslint-plugin-perfectionist": "^4.11.0",
46
- "knip": "^5.50.5",
47
- "typescript": "^5.8.3",
48
- "typescript-eslint": "^8.30.1",
49
- "@babel/plugin-transform-block-scoping": "^7.27.0",
50
- "@cspotcode/source-map-support": "^0.8.1",
51
44
  "@rollup/plugin-alias": "^5.1.1",
52
45
  "@rollup/plugin-babel": "^6.0.4",
53
46
  "@rollup/plugin-commonjs": "^28.0.3",
54
47
  "@rollup/plugin-node-resolve": "^16.0.1",
55
48
  "@rollup/plugin-replace": "^6.0.2",
56
49
  "@rollup/plugin-terser": "^0.4.4",
57
- "@swc/core": "^1.11.21",
50
+ "@stylistic/eslint-plugin": "^4.2.0",
51
+ "@swc/core": "^1.11.24",
58
52
  "@types/eslint": "^9.6.1",
59
53
  "@types/fs-extra": "^11.0.4",
60
54
  "@types/graceful-fs": "^4.1.9",
@@ -63,36 +57,43 @@
63
57
  "@types/klaw-sync": "^6.0.5",
64
58
  "@types/minimist": "^1.2.5",
65
59
  "@types/mocha": "^10.0.10",
60
+ "@types/node": "^22.15.18",
66
61
  "@types/proxyquire": "^1.3.31",
67
62
  "@types/universalify": "^1.0.3",
68
63
  "@types/verror": "^1.10.11",
69
- "@typescript-eslint/eslint-plugin": "^8.30.1",
70
- "@typescript-eslint/parser": "^8.30.1",
64
+ "@typescript-eslint/eslint-plugin": "^8.32.1",
65
+ "@typescript-eslint/parser": "^8.32.1",
71
66
  "@uwx/fsxt-rollup-plugin-dts": "^6.0.2",
67
+ "eslint": "^9.26.0",
72
68
  "eslint-config-google": "^0.14.0",
69
+ "eslint-plugin-no-relative-import-paths": "^1.6.1",
70
+ "eslint-plugin-perfectionist": "^4.13.0",
73
71
  "graceful-fs": "^4.2.11",
74
72
  "klaw": "^4.1.0",
75
73
  "klaw-sync": "^7.0.0",
74
+ "knip": "^5.56.0",
76
75
  "minimist": "^1.2.8",
77
- "mocha": "^11.1.0",
76
+ "mocha": "^11.2.2",
78
77
  "nyc": "^17.1.0",
79
78
  "proxyquire": "^2.1.3",
80
79
  "read-dir-files": "^0.1.1",
81
80
  "rimraf": "^6.0.1",
82
- "rollup": "^4.40.0",
81
+ "rollup": "^4.40.2",
83
82
  "rollup-plugin-bundle-size": "^1.0.3",
84
83
  "rollup-plugin-typescript-paths": "^1.5.0",
85
84
  "ts-node": "^10.9.2",
86
85
  "tsconfig-paths": "^4.2.0",
87
86
  "tslib": "2.8.1",
88
- "typedoc": "^0.28.2",
87
+ "typedoc": "^0.28.4",
89
88
  "typedoc-plugin-missing-exports": "^4.0.0",
89
+ "typescript": "^5.8.3",
90
+ "typescript-eslint": "^8.32.1",
90
91
  "universalify": "^2.0.1",
91
- "unplugin-swc": "^1.5.1",
92
+ "unplugin-swc": "^1.5.3",
92
93
  "verror": "^1.10.1"
93
94
  },
94
95
  "exports": {
95
- ".": "./bin/main.js"
96
+ ".": "./bin/mod.js"
96
97
  },
97
98
  "files": [
98
99
  "bin",
@@ -100,8 +101,8 @@
100
101
  "README.md",
101
102
  "LICENSE"
102
103
  ],
103
- "main": "./bin/main.js",
104
- "module": "./bin/main.js",
104
+ "main": "./bin/mod.js",
105
+ "module": "./bin/mod.js",
105
106
  "publishConfig": {
106
107
  "access": "public"
107
108
  }
File without changes
File without changes