@zenfs/core 0.0.12 → 0.2.0
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/dist/ApiError.d.ts +52 -15
- package/dist/ApiError.js +77 -50
- package/dist/FileIndex.d.ts +32 -35
- package/dist/FileIndex.js +93 -109
- package/dist/backends/AsyncMirror.d.ts +42 -43
- package/dist/backends/AsyncMirror.js +154 -147
- package/dist/backends/AsyncStore.d.ts +29 -28
- package/dist/backends/AsyncStore.js +375 -482
- package/dist/backends/FolderAdapter.js +8 -19
- package/dist/backends/InMemory.d.ts +16 -13
- package/dist/backends/InMemory.js +29 -14
- package/dist/backends/Locked.d.ts +8 -28
- package/dist/backends/Locked.js +74 -224
- package/dist/backends/OverlayFS.d.ts +26 -34
- package/dist/backends/OverlayFS.js +303 -511
- package/dist/backends/SyncStore.d.ts +54 -72
- package/dist/backends/SyncStore.js +159 -161
- package/dist/backends/backend.d.ts +45 -29
- package/dist/backends/backend.js +83 -13
- package/dist/backends/index.d.ts +6 -7
- package/dist/backends/index.js +5 -6
- package/dist/browser.min.js +21 -6
- package/dist/browser.min.js.map +4 -4
- package/dist/emulation/callbacks.d.ts +119 -113
- package/dist/emulation/callbacks.js +129 -92
- package/dist/emulation/constants.js +1 -1
- package/dist/emulation/dir.d.ts +55 -0
- package/dist/emulation/dir.js +104 -0
- package/dist/emulation/fs.d.ts +1 -2
- package/dist/emulation/fs.js +0 -1
- package/dist/emulation/index.d.ts +3 -0
- package/dist/emulation/index.js +3 -0
- package/dist/emulation/promises.d.ts +265 -145
- package/dist/emulation/promises.js +526 -383
- package/dist/emulation/shared.d.ts +20 -6
- package/dist/emulation/shared.js +22 -23
- package/dist/emulation/streams.d.ts +102 -0
- package/dist/emulation/streams.js +55 -0
- package/dist/emulation/sync.d.ts +98 -69
- package/dist/emulation/sync.js +280 -133
- package/dist/file.d.ts +175 -173
- package/dist/file.js +257 -273
- package/dist/filesystem.d.ts +71 -244
- package/dist/filesystem.js +67 -472
- package/dist/index.d.ts +7 -44
- package/dist/index.js +22 -75
- package/dist/inode.d.ts +37 -28
- package/dist/inode.js +123 -65
- package/dist/stats.d.ts +91 -36
- package/dist/stats.js +138 -110
- package/dist/utils.d.ts +26 -13
- package/dist/utils.js +79 -107
- package/package.json +7 -4
- package/readme.md +2 -40
package/readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ZenFS
|
|
2
2
|
|
|
3
|
-
ZenFS is an in-browser file system that emulates the [Node JS file system API](http://nodejs.org/api/fs.html) and supports storing and retrieving files from various backends. ZenFS also integrates nicely
|
|
3
|
+
ZenFS is an in-browser file system that emulates the [Node JS file system API](http://nodejs.org/api/fs.html) and supports storing and retrieving files from various backends. ZenFS also integrates nicely with other tools.
|
|
4
4
|
|
|
5
5
|
## Backends
|
|
6
6
|
|
|
@@ -254,44 +254,6 @@ If you want to use an asynchronous backend, you must wrap it in an `AsyncMirror`
|
|
|
254
254
|
|
|
255
255
|
Run unit tests with `npm test`.
|
|
256
256
|
|
|
257
|
-
### Citing
|
|
258
|
-
|
|
259
|
-
ZenFS is a component of the [Doppio](http://doppiojvm.org/) and [Browsix](https://browsix.org/) research projects from the PLASMA lab at the University of Massachusetts Amherst. If you decide to use ZenFS in a project that leads to a publication, please cite the academic papers on [Doppio](https://dl.acm.org/citation.cfm?doid=2594291.2594293) and [Browsix](https://dl.acm.org/citation.cfm?id=3037727):
|
|
260
|
-
|
|
261
|
-
> John Vilk and Emery D. Berger. Doppio: Breaking the Browser Language Barrier. In
|
|
262
|
-
> _Proceedings of the 35th ACM SIGPLAN Conference on Programming Language Design and Implementation_
|
|
263
|
-
> (2014), pp. 508–518.
|
|
264
|
-
|
|
265
|
-
```bibtex
|
|
266
|
-
@inproceedings{VilkDoppio,
|
|
267
|
-
author = {John Vilk and
|
|
268
|
-
Emery D. Berger},
|
|
269
|
-
title = {{Doppio: Breaking the Browser Language Barrier}},
|
|
270
|
-
booktitle = {Proceedings of the 35th {ACM} {SIGPLAN} Conference on Programming Language Design and Implementation},
|
|
271
|
-
pages = {508--518},
|
|
272
|
-
year = {2014},
|
|
273
|
-
url = {http://doi.acm.org/10.1145/2594291.2594293},
|
|
274
|
-
doi = {10.1145/2594291.2594293}
|
|
275
|
-
}
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
> Bobby Powers, John Vilk, and Emery D. Berger. Browsix: Bridging the Gap Between Unix and the Browser. In _Proceedings of the Twenty-Second International Conference on Architectural Support for Programming Languages and Operating Systems_ (2017), pp. 253–266.
|
|
279
|
-
|
|
280
|
-
```bibtex
|
|
281
|
-
@inproceedings{PowersBrowsix,
|
|
282
|
-
author = {Bobby Powers and
|
|
283
|
-
John Vilk and
|
|
284
|
-
Emery D. Berger},
|
|
285
|
-
title = {{Browsix: Bridging the Gap Between Unix and the Browser}},
|
|
286
|
-
booktitle = {Proceedings of the Twenty-Second International Conference on Architectural
|
|
287
|
-
Support for Programming Languages and Operating Systems},
|
|
288
|
-
pages = {253--266},
|
|
289
|
-
year = {2017},
|
|
290
|
-
url = {http://doi.acm.org/10.1145/3037697.3037727},
|
|
291
|
-
doi = {10.1145/3037697.3037727}
|
|
292
|
-
}
|
|
293
|
-
```
|
|
294
|
-
|
|
295
257
|
### License
|
|
296
258
|
|
|
297
|
-
ZenFS is licensed under the MIT License.
|
|
259
|
+
ZenFS is licensed under the MIT License.
|