@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.
Files changed (54) hide show
  1. package/dist/ApiError.d.ts +52 -15
  2. package/dist/ApiError.js +77 -50
  3. package/dist/FileIndex.d.ts +32 -35
  4. package/dist/FileIndex.js +93 -109
  5. package/dist/backends/AsyncMirror.d.ts +42 -43
  6. package/dist/backends/AsyncMirror.js +154 -147
  7. package/dist/backends/AsyncStore.d.ts +29 -28
  8. package/dist/backends/AsyncStore.js +375 -482
  9. package/dist/backends/FolderAdapter.js +8 -19
  10. package/dist/backends/InMemory.d.ts +16 -13
  11. package/dist/backends/InMemory.js +29 -14
  12. package/dist/backends/Locked.d.ts +8 -28
  13. package/dist/backends/Locked.js +74 -224
  14. package/dist/backends/OverlayFS.d.ts +26 -34
  15. package/dist/backends/OverlayFS.js +303 -511
  16. package/dist/backends/SyncStore.d.ts +54 -72
  17. package/dist/backends/SyncStore.js +159 -161
  18. package/dist/backends/backend.d.ts +45 -29
  19. package/dist/backends/backend.js +83 -13
  20. package/dist/backends/index.d.ts +6 -7
  21. package/dist/backends/index.js +5 -6
  22. package/dist/browser.min.js +21 -6
  23. package/dist/browser.min.js.map +4 -4
  24. package/dist/emulation/callbacks.d.ts +119 -113
  25. package/dist/emulation/callbacks.js +129 -92
  26. package/dist/emulation/constants.js +1 -1
  27. package/dist/emulation/dir.d.ts +55 -0
  28. package/dist/emulation/dir.js +104 -0
  29. package/dist/emulation/fs.d.ts +1 -2
  30. package/dist/emulation/fs.js +0 -1
  31. package/dist/emulation/index.d.ts +3 -0
  32. package/dist/emulation/index.js +3 -0
  33. package/dist/emulation/promises.d.ts +265 -145
  34. package/dist/emulation/promises.js +526 -383
  35. package/dist/emulation/shared.d.ts +20 -6
  36. package/dist/emulation/shared.js +22 -23
  37. package/dist/emulation/streams.d.ts +102 -0
  38. package/dist/emulation/streams.js +55 -0
  39. package/dist/emulation/sync.d.ts +98 -69
  40. package/dist/emulation/sync.js +280 -133
  41. package/dist/file.d.ts +175 -173
  42. package/dist/file.js +257 -273
  43. package/dist/filesystem.d.ts +71 -244
  44. package/dist/filesystem.js +67 -472
  45. package/dist/index.d.ts +7 -44
  46. package/dist/index.js +22 -75
  47. package/dist/inode.d.ts +37 -28
  48. package/dist/inode.js +123 -65
  49. package/dist/stats.d.ts +91 -36
  50. package/dist/stats.js +138 -110
  51. package/dist/utils.d.ts +26 -13
  52. package/dist/utils.js +79 -107
  53. package/package.json +7 -4
  54. 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 into the Emscripten file system.
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. See `LICENSE` for details.
259
+ ZenFS is licensed under the MIT License.