@dbx-tools/shared-fs 0.6.10 → 0.6.12
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 +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @dbx-tools/shared-fs
|
|
2
2
|
|
|
3
3
|
Browser-safe filesystem contract and abstract base for rooted storage backends.
|
|
4
4
|
|
|
@@ -21,11 +21,11 @@ Key features:
|
|
|
21
21
|
(`posixPath.toPosix`, `posixPath.join`, …)
|
|
22
22
|
- Typed `FileSystemError` codes for portable failure handling
|
|
23
23
|
|
|
24
|
-
## Why
|
|
24
|
+
## Why Use This
|
|
25
25
|
|
|
26
26
|
Use this when multiple backends (local disk, object storage, Databricks volumes, in-memory) should share one API. Node hosts implement concrete adapters such as `@dbx-tools/fs` (`LocalFileSystem`).
|
|
27
27
|
|
|
28
|
-
## Quick
|
|
28
|
+
## Quick Start
|
|
29
29
|
|
|
30
30
|
```ts
|
|
31
31
|
import type { FileSystem } from "@dbx-tools/shared-fs";
|
|
@@ -35,7 +35,7 @@ const mem = new MemoryFileSystem();
|
|
|
35
35
|
await mem.writeFile("note.txt", "hi");
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
##
|
|
38
|
+
## Modules
|
|
39
39
|
|
|
40
40
|
| Export | Role |
|
|
41
41
|
| ---------------------------------------- | ---------------------------------------------------------- |
|
package/package.json
CHANGED
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"typescript": "^5.9.3"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@dbx-tools/shared-core": "0.6.
|
|
14
|
+
"@dbx-tools/shared-core": "0.6.12"
|
|
15
15
|
},
|
|
16
16
|
"main": "./lib/index.js",
|
|
17
17
|
"license": "UNLICENSED",
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
|
-
"version": "0.6.
|
|
21
|
+
"version": "0.6.12",
|
|
22
22
|
"types": "./lib/index.d.ts",
|
|
23
23
|
"type": "module",
|
|
24
24
|
"exports": {
|